Exemplo n.º 1
0
 function __construct()
 {
     parent::__construct();
     add_filter('jetpack_xmlrpc_methods', array($this, 'register_update_publicize_connections_xmlrpc_method'));
     add_action('load-settings_page_sharing', array($this, 'admin_page_load'), 9);
     add_action('wp_ajax_publicize_tumblr_options_page', array($this, 'options_page_tumblr'));
     add_action('wp_ajax_publicize_facebook_options_page', array($this, 'options_page_facebook'));
     add_action('wp_ajax_publicize_twitter_options_page', array($this, 'options_page_twitter'));
     add_action('wp_ajax_publicize_linkedin_options_page', array($this, 'options_page_linkedin'));
     add_action('wp_ajax_publicize_path_options_page', array($this, 'options_page_path'));
     add_action('wp_ajax_publicize_google_plus_options_page', array($this, 'options_page_google_plus'));
     add_action('wp_ajax_publicize_tumblr_options_save', array($this, 'options_save_tumblr'));
     add_action('wp_ajax_publicize_facebook_options_save', array($this, 'options_save_facebook'));
     add_action('wp_ajax_publicize_twitter_options_save', array($this, 'options_save_twitter'));
     add_action('wp_ajax_publicize_linkedin_options_save', array($this, 'options_save_linkedin'));
     add_action('wp_ajax_publicize_path_options_save', array($this, 'options_save_path'));
     add_action('wp_ajax_publicize_google_plus_options_save', array($this, 'options_save_google_plus'));
     add_action('load-settings_page_sharing', array($this, 'force_user_connection'));
     add_filter('publicize_checkbox_default', array($this, 'publicize_checkbox_default'), 10, 4);
     add_action('wp_insert_post', array($this, 'save_publicized'), 11, 3);
     add_filter('jetpack_twitter_cards_site_tag', array($this, 'enhaced_twitter_cards_site_tag'));
     add_action('publicize_save_meta', array($this, 'save_publicized_twitter_account'), 10, 4);
     add_action('publicize_save_meta', array($this, 'save_publicized_facebook_account'), 10, 4);
     add_filter('jetpack_sharing_twitter_via', array($this, 'get_publicized_twitter_account'), 10, 2);
     include_once JETPACK__PLUGIN_DIR . 'modules/publicize/enhanced-open-graph.php';
 }
Exemplo n.º 2
0
 function __construct()
 {
     parent::__construct();
     add_action('load-settings_page_sharing', array($this, 'admin_page_load'), 9);
     add_action('wp_ajax_publicize_tumblr_options_page', array($this, 'options_page_tumblr'));
     add_action('wp_ajax_publicize_facebook_options_page', array($this, 'options_page_facebook'));
     add_action('wp_ajax_publicize_twitter_options_page', array($this, 'options_page_twitter'));
     add_action('wp_ajax_publicize_linkedin_options_page', array($this, 'options_page_linkedin'));
     add_action('wp_ajax_publicize_tumblr_options_save', array($this, 'options_save_tumblr'));
     add_action('wp_ajax_publicize_facebook_options_save', array($this, 'options_save_facebook'));
     add_action('wp_ajax_publicize_twitter_options_save', array($this, 'options_save_twitter'));
     add_action('wp_ajax_publicize_linkedin_options_save', array($this, 'options_save_linkedin'));
     add_action('load-settings_page_sharing', array($this, 'force_user_connection'));
     add_action('transition_post_status', array($this, 'save_publicized'), 10, 3);
 }
 function __construct()
 {
     parent::__construct();
     add_action('load-settings_page_sharing', array($this, 'admin_page_load'), 9);
     add_action('wp_ajax_publicize_tumblr_options_page', array($this, 'options_page_tumblr'));
     add_action('wp_ajax_publicize_facebook_options_page', array($this, 'options_page_facebook'));
     add_action('wp_ajax_publicize_twitter_options_page', array($this, 'options_page_twitter'));
     add_action('wp_ajax_publicize_linkedin_options_page', array($this, 'options_page_linkedin'));
     add_action('wp_ajax_publicize_path_options_page', array($this, 'options_page_path'));
     add_action('wp_ajax_publicize_google_plus_options_page', array($this, 'options_page_google_plus'));
     add_action('wp_ajax_publicize_tumblr_options_save', array($this, 'options_save_tumblr'));
     add_action('wp_ajax_publicize_facebook_options_save', array($this, 'options_save_facebook'));
     add_action('wp_ajax_publicize_twitter_options_save', array($this, 'options_save_twitter'));
     add_action('wp_ajax_publicize_linkedin_options_save', array($this, 'options_save_linkedin'));
     add_action('wp_ajax_publicize_path_options_save', array($this, 'options_save_path'));
     add_action('wp_ajax_publicize_google_plus_options_save', array($this, 'options_save_google_plus'));
     add_action('load-settings_page_sharing', array($this, 'force_user_connection'));
     add_filter('publicize_checkbox_default', array($this, 'publicize_checkbox_default'), 10, 4);
     add_action('transition_post_status', array($this, 'save_publicized'), 10, 3);
     include_once JETPACK__PLUGIN_DIR . 'modules/publicize/enhanced-open-graph.php';
 }