PHP Class WPSEO_Post_Metabox_Formatter, wordpress-seo

Inheritance: implements WPSEO_Metabox_Formatter_Interface
Show file Open project: yoast/wordpress-seo

Protected Properties

Property Type Description
$options Array with the WPSEO_Titles options.

Public Methods

Method Description
__construct ( WP_Post | array $post, array $options, string $structure ) Constructor.
get_values ( ) : array Returns the translated values.

Private Methods

Method Description
base_url_for_js ( ) : string Returns a base URL for use in the JS, takes permalink structure into account
edit_url ( ) : string Returns the url to edit the taxonomy
get_focus_keyword_usage ( ) : array Counting the number of given keyword used for other posts than given post_id
get_metadesc_date ( ) : string Determines the date to be displayed in the snippet preview
get_metadesc_template ( ) : string Retrieves the metadesc template.
get_template ( String $template_option_name ) : string Retrieves a template.
get_title_template ( ) : string Retrieves the title template.
is_show_date_enabled ( ) : boolean Returns whether or not showing the date in the snippet preview is enabled.
search_url ( ) : string Returns the url to search for keyword for the post

Method Details

__construct() public method

Constructor.
public __construct ( WP_Post | array $post, array $options, string $structure )
$post WP_Post | array Post object.
$options array Title options to use.
$structure string The permalink to follow.

get_values() public method

Returns the translated values.
public get_values ( ) : array
return array

Property Details

$options protected property

Array with the WPSEO_Titles options.
protected $options