用户中心 credits/settings 渲染器整包拆分:编排器 + 子块
This commit is contained in:
1 parent
f43519b1df
commit
81d5647205
11 files changed
+442
-348
No files matched your search
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* User center settings: hidden runtime fields for JS.
|
||||
*
|
||||
* Expects extracted $context vars.
|
||||
*
|
||||
* @package AKSRT
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
$user_email = isset($target_user) && $target_user instanceof WP_User
|
||||
? (string) $target_user->user_email
|
||||
: (string) ($user_email ?? '');
|
||||
?>
|
||||
<input type="hidden" id="aksrt-settings-nonce" value="<?php echo esc_attr(wp_create_nonce('aksrt_account_settings')); ?>">
|
||||
<input type="hidden" id="aksrt-oauth-unbind-nonce" value="<?php echo esc_attr(wp_create_nonce('aksrt_oauth_unbind')); ?>">
|
||||
<input type="hidden" id="aksrt-user-email" value="<?php echo esc_attr($user_email); ?>">
|
||||
<input type="hidden" id="aksrt-ajax-url" value="<?php echo esc_url(admin_url('admin-ajax.php')); ?>">
|
||||
<input type="hidden" id="aksrt-login-url" value="<?php echo esc_attr(aksrt_get_login_url()); ?>">
|
||||
<input type="hidden" id="aksrt-public-nonce" value="<?php echo esc_attr(wp_create_nonce('aksrt_public_nonce')); ?>">
|
||||
Reference in new issue
Block a user