Class WPGlobus_YoastSEO
Package: WPGlobus\
Yoast
Located at includes/vendor/class-wpglobus-yoastseo34.php
Methods summary
public static
|
|
public static
|
#
action__save_compare_data( )
Fix empty yoast_wpseo_focuskw while saving/updating post with active extra language.
Fix empty yoast_wpseo_focuskw while saving/updating post with active extra language.
Since
1.6.3
See
wordpress-seo\admin\metabox\class-metabox.php
|
public static
null|array
|
#
filter__get_post_metadata( null|array $metadata, integer $post_id, string $meta_key, boolean $single )
Filter Yoast post metadata.
Filter Yoast post metadata.
When Yoast builds HTML title and meta description, it looks in tree places:
- Actual post_title,
- Title and Description from Yoast Snippet (fancy metabox for each post),
- Rules (%%title%% %%sep%% %%page%%) in the SEO Settings.
Yoast gets confused when not all languages are filled in consistently
(one language has post_title, another one - only Snippet, others - should work
from the Rules).
We are trying to hook into the get_post_metadata and return filtered values
to Yoast, so when it should be empty - it's empty and not
{:xx}Something from another language{:}
Parameters
- $metadata
- Comes as NULL. Return something to short-circuit.
- $post_id
- Post ID.
- $meta_key
- Empty because the array of all metas is returned.
- $single
- False in this case.
Returns
null|array Return metadata array if we are "in business".
Since
1.4.0 (original)
1.5.5 (restored and rewritten)
Scope
front
|
public static
string
|
#
filter__get_separator( array $sep )
Filter to get yoast seo separator.
Filter to get yoast seo separator.
Parameters
Returns
string
Since
1.5.3
|
public static
string
|
#
set_default_editor( array $editors )
Filter which editor should be displayed by default.
Filter which editor should be displayed by default.
Parameters
- $editors
- An array of editors. Accepts 'tinymce', 'html', 'test'.
Returns
string
Since
1.4.8
|
public static
string
|
#
filter__wpseo_columns( string $text )
To translate Yoast columns
To translate Yoast columns
Parameters
Returns
string
See
WPSEO_Meta_Columns::column_content
Link
Scope
admin
|
public static
|
#
action__admin_print_scripts( )
Enqueue js for YoastSEO support
Enqueue js for YoastSEO support
Since
1.4.0
|
public static
|
#
action__wpseo_tab_content( )
Add language tabs to wpseo metabox ( .wpseo-metabox-tabs-div )
Add language tabs to wpseo metabox ( .wpseo-metabox-tabs-div )
|
Properties summary
public static
string
|
$yoastseo_separator
|
|