상속: extends WPSEO_Metabox
예제 #1
0
 /**
  * Returns the relevant metabox sections for the current view.
  *
  * @return WPSEO_Metabox_Section[]
  */
 private function get_content_sections()
 {
     $content_sections = array($this->get_content_meta_section());
     if (current_user_can('manage_options') || $this->options['disableadvanced_meta'] === false) {
         $content_sections[] = $this->get_advanced_meta_section();
     }
     // Check if social_admin is an instance of WPSEO_Social_Admin.
     if (is_a($this->social_admin, 'WPSEO_Social_Admin')) {
         $content_sections[] = $this->social_admin->get_meta_section();
     }
     if (has_action('wpseo_tab_header') || has_action('wpseo_tab_content')) {
         $content_sections[] = $this->get_addons_meta_section();
     }
     return $content_sections;
 }
예제 #2
0
파일: curl.php 프로젝트: shellygraham/tag
 function _initialize_yoast()
 {
     wpseo_init();
     wpseo_admin_init();
     wpseo_load_textdomain();
     $options = WPSEO_Options::get_all();
     new WPSEO_Metabox();
     WPSEO_Metabox::translate_meta_boxes();
     if ($options['opengraph'] === true || $options['twitter'] === true || $options['googleplus'] === true) {
         new WPSEO_Social_Admin();
         WPSEO_Social_Admin::translate_meta_boxes();
     }
 }