/**
  * Register all context hooks
  *
  * @return void
  */
 public static function register()
 {
     parent::register();
     add_action('load-theme-editor.php', array(__CLASS__, 'get_edition_data'));
     add_action('load-plugin-editor.php', array(__CLASS__, 'get_edition_data'));
     add_filter('wp_redirect', array(__CLASS__, 'log_changes'));
 }
 public static function register()
 {
     parent::register();
     add_filter('wp_stream_posts_exclude_post_types', array(__CLASS__, 'exclude_order_post_types'));
     add_action('wp_stream_comments_exclude_comment_types', array(__CLASS__, 'exclude_order_comment_types'));
     self::get_woocommerce_settings_fields();
 }
 /**
  * Register all context hooks
  *
  * @return void
  */
 public static function register()
 {
     parent::register();
     add_action('admin_head', array(__CLASS__, 'highlight_field'));
     add_action('admin_enqueue_scripts', array(__CLASS__, 'enqueue_jquery_color'));
     add_action(sprintf('update_option_theme_mods_%s', get_option('stylesheet')), array(__CLASS__, 'log_theme_modification'), 10, 2);
 }
 public static function register()
 {
     parent::register();
     add_filter('wp_stream_log_data', array(__CLASS__, 'log_override'));
 }
 public static function register()
 {
     parent::register();
     self::$options = array_merge(self::$options, array('hide-loggedout-adminbar' => array('label' => _x('Toolbar', 'buddypress', 'stream'), 'page' => 'bp-settings'), '_bp_force_buddybar' => array('label' => _x('Toolbar', 'buddypress', 'stream'), 'page' => 'bp-settings'), 'bp-disable-account-deletion' => array('label' => _x('Account Deletion', 'buddypress', 'stream'), 'page' => 'bp-settings'), 'bp-disable-profile-sync' => array('label' => _x('Profile Syncing', 'buddypress', 'stream'), 'page' => 'bp-settings'), 'bp_restrict_group_creation' => array('label' => _x('Group Creation', 'buddypress', 'stream'), 'page' => 'bp-settings'), 'bb-config-location' => array('label' => _x('bbPress Configuration', 'buddypress', 'stream'), 'page' => 'bp-settings'), 'bp-disable-blogforum-comments' => array('label' => _x('Blog & Forum Comments', 'buddypress', 'stream'), 'page' => 'bp-settings'), '_bp_enable_heartbeat_refresh' => array('label' => _x('Activity auto-refresh', 'buddypress', 'stream'), 'page' => 'bp-settings'), '_bp_enable_akismet' => array('label' => _x('Akismet', 'buddypress', 'stream'), 'page' => 'bp-settings'), 'bp-disable-avatar-uploads' => array('label' => _x('Avatar Uploads', 'buddypress', 'stream'), 'page' => 'bp-settings')));
 }
 /**
  * Register the connector
  *
  * @return void
  */
 public static function register()
 {
     add_filter('wp_stream_log_data', array(__CLASS__, 'log_override'));
     /**
      * Allow devs to disable logging values of rendered forms
      *
      * @return bool
      */
     if (apply_filters('wp_stream_acf_enable_value_logging', true)) {
         self::$actions[] = 'acf/update_value';
     }
     parent::register();
 }
 public static function register()
 {
     parent::register();
     foreach (WPSEO_Options::$options as $class) {
         /* @var $class WPSEO_Options */
         self::$option_groups[$class::get_instance()->group_name] = array('class' => $class, 'name' => $class::get_instance()->option_name);
     }
     add_action('admin_enqueue_scripts', array(__CLASS__, 'admin_enqueue_scripts'));
     add_filter('wp_stream_log_data', array(__CLASS__, 'log_override'));
 }
 public static function register()
 {
     parent::register();
     add_filter('wp_stream_log_data', array(__CLASS__, 'log_override'));
     self::$options = array('jetpack_options' => null, 'hide_gplus' => null, 'gplus_authors' => null, 'sharing-options' => array('label' => __('Sharing options', 'stream'), 'context' => 'sharedaddy'), 'sharedaddy_disable_resources' => null, 'jetpack-twitter-cards-site-tag' => array('label' => __('Twitter site tag', 'stream'), 'context' => 'sharedaddy'), 'stats_options' => array('label' => __('WordPress.com Stats', 'stream'), 'context' => 'stats'), 'jetpack_comment_form_color_scheme' => array('label' => __('Color Scheme', 'stream'), 'context' => 'jetpack-comments'), 'disabled_likes' => array('label' => __('WP.com Site-wide Likes', 'stream'), 'context' => 'likes'), 'wp_mobile_excerpt' => array('label' => __('Excerpts appearance', 'stream'), 'context' => 'minileven'), 'wp_mobile_app_promos' => array('label' => __('App promos', 'stream'), 'context' => 'minileven'));
     self::$options_override = array('carousel_background_color' => array('label' => __('Background color', 'stream'), 'context' => 'carousel'), 'carousel_display_exif' => array('label' => __('Metadata', 'stream'), 'context' => 'carousel'), 'stb_enabled' => array('label' => __('Follow blog comment form button', 'stream'), 'context' => 'subscriptions'), 'stc_enabled' => array('label' => __('Follow comments form button', 'stream'), 'context' => 'subscriptions'), 'highlander_comment_form_prompt' => array('label' => __('Greeting Text', 'stream'), 'context' => 'jetpack-comments'), 'infinite_scroll_google_analytics' => array('label' => __('Infinite Scroll Google Analytics', 'stream'), 'context' => 'infinite-scroll'), 'jetpack_sso_require_two_step' => array('label' => __('Require Two-Step Authentication', 'stream'), 'context' => 'sso'), 'jetpack_sso_match_by_email' => array('label' => __('Match by Email', 'stream'), 'context' => 'sso'), 'jetpack_relatedposts' => array('show_headline' => array('label' => __('Show Related Posts Headline', 'stream'), 'context' => 'related-posts'), 'show_thumbnails' => array('label' => __('Show Related Posts Thumbnails', 'stream'), 'context' => 'related-posts')), 'verification_services_codes' => array('google' => array('label' => __('Google Webmaster Tools Token', 'stream'), 'context' => 'verification-tools'), 'bing' => array('label' => __('Bing Webmaster Center Token', 'stream'), 'context' => 'verification-tools'), 'pinterest' => array('label' => __('Pinterest Site Verification Token', 'stream'), 'context' => 'verification-tools')), 'tiled_galleries' => array('label' => __('Tiled Galleries', 'stream'), 'context' => 'tiled-gallery'));
 }
 public static function register()
 {
     parent::register();
     self::$options = array('rg_gforms_disable_css' => array('label' => __('Output CSS', 'gravityforms')), 'rg_gforms_enable_html5' => array('label' => __('Output HTML5', 'gravityforms')), 'gform_enable_noconflict' => array('label' => __('No-Conflict Mode', 'gravityforms')), 'rg_gforms_currency' => array('label' => __('Currency', 'gravityforms')), 'rg_gforms_captcha_public_key' => array('label' => __('reCAPTCHA Public Key', 'gravityforms')), 'rg_gforms_captcha_private_key' => array('label' => __('reCAPTCHA Private Key', 'gravityforms')), 'rg_gforms_key' => null);
 }
 public static function register()
 {
     parent::register();
     add_filter('wp_stream_log_data', array(__CLASS__, 'log_override'));
     self::$options = array('edd_settings' => null);
 }
Esempio n. 11
0
 public static function register()
 {
     parent::register();
     add_action('update_option_theme_mods_' . get_option('stylesheet'), array(__CLASS__, 'callback_update_option_theme_mods'), 10, 2);
 }