芝麻web文件管理V1.00
编辑当前文件:/home/seolotod/www/wp-content/plugins/elementor-pro/modules/role-manager/module.php
get_role_manager_options(); } public function display_role_controls( $role_slug, $role_data ) { static $options = false; if ( ! API::is_license_active() ) { // Promotions for PRO when the license not active. $this->print_role_controls_promotion(); return; } if ( ! $options ) { $options = [ 'excluded_options' => Plugin::elementor()->role_manager->get_role_manager_options(), 'advanced_options' => $this->get_role_manager_options(), ]; } $id = self::ROLE_MANAGER_OPTION_NAME . '_' . $role_slug . '_design'; $name = 'elementor_' . self::ROLE_MANAGER_OPTION_NAME . '[' . $role_slug . '][]'; $checked = isset( $options['advanced_options'][ $role_slug ] ) ? $options['advanced_options'][ $role_slug ] : []; ?>
>
add_section( 'general', 'advanced-role-manager', [ 'fields' => [ self::ROLE_MANAGER_OPTION_NAME => [ 'field_args' => [ 'type' => 'raw_html', 'html' => '', ], 'setting_args' => [ 'sanitize_callback' => [ $this, 'save_advanced_options' ], ], ], ], ] ); } private function print_role_controls_promotion() { $is_expired = API::is_license_expired(); $label = $is_expired ? __( 'Renew now', 'elementor-pro' ) : __( 'Connect & Activate', 'elementor-pro' ); $url = $is_expired ? 'https://go.elementor.com/renew-role-manager/' : Plugin::instance()->license_admin->get_connect_url( [ 'utm_source' => 'wp-role-manager', 'utm_medium' => 'wp-dash', 'utm_campaign' => 'connect-and-activate-license', ] ); ?>
role_manager, 'get_go_pro_link_html' ] ); add_action( 'elementor/role/restrictions/controls', [ $this, 'display_role_controls' ], 10, 2 ); add_filter( 'elementor/editor/user/restrictions', [ $this, 'get_user_restrictions' ] ); } }