get_names() : []; wp_localize_script( 'aafe-display-conditions-editor', 'aafeDisplayConditions', [ 'roles' => array_map( 'translate_user_role', $roles ), ] ); // Enqueue some basic styles for the modal UI wp_enqueue_style( 'aafe-display-conditions-editor', AAFE_URL . 'assets/css/display-conditions-editor.css', [], AAFE_VERSION ); } public function get_default_settings() { return [ 'label_block' => true, ]; } public function get_default_value() { return ''; // JSON string of conditions } public function content_template() { $control_uid = $this->get_control_uid(); ?>
<# if ( data.description ) { #>
{{{ data.description }}}
<# } #>