'xss_settings', 'type' => 'section', 'label' => __( 'Cross Domain Notice', 'notificationx' ), 'priority' => 30, 'fields' => array( 'xss_code' => array( 'name' => 'xss_code', 'type' => 'codeviewer', 'label' => __( 'Cross Domain Notice', 'notificationx' ), 'button_text' => __( 'Click to Copy', 'notificationx' ), 'success_text' => __( 'Copied to clipboard.', 'notificationx' ), 'is_pro' => true, 'copyOnClick' => true, 'readOnly' => true, /* translators: %s: Cross Domain Notice link URL */ 'help' => sprintf( __( 'Show your Notification Alerts in another website using Cross Domain Notice.', 'notificationx' ), 'https://notificationx.com/docs/notificationx-cross-domain-notice/' ), // phpcs:ignore WordPress.WP.EnqueuedResources.NonEnqueuedScript, WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Default value of a setting shown to the user to copy, not output by the plugin; nx_ is this plugin's established hook prefix. 'default' => apply_filters( 'nx_settings_xss_code_default', "
\n\n" ), 'priority' => 1, ), ), ); return $tabs; } }