get_title_template() public static method

Deprecation: 3.2 Retrieves the title template.
public static get_title_template ( object $post ) : string
$post object metabox post.
return string
Esempio n. 1
0
 /**
  * Pass variables to js for use with the post-scraper
  *
  * @return array
  */
 public function localize_post_scraper_script()
 {
     $post = $this->get_metabox_post();
     $translations = $this->get_scraper_translations();
     return array('translations' => $translations, 'keyword_usage' => $this->get_focus_keyword_usage(), 'search_url' => admin_url('edit.php?seo_kw_filter={keyword}'), 'post_edit_url' => admin_url('post.php?post={id}&action=edit'), 'base_url' => $this->get_base_url_for_js(), 'title_template' => WPSEO_Metabox::get_title_template($post), 'metadesc_template' => WPSEO_Metabox::get_metadesc_template($post), 'contentTab' => __('Content:', 'wordpress-seo'), 'metaDescriptionDate' => $this->get_metadesc_date($post), 'locale' => get_locale());
 }