Webpage Filters

A list of WPSSO filters used to modify and return information about the webpage (title, description, tags, etc.). Some filters have an extra “seed” variant — the “seed” filter is typically applied at the beginning of a method (so the input string or array is empty), and if a value is returned by the filter, the value is used as-is and the remainder of the method is skipped. The “non-seed” filter variant is applied at the end of the method, so the filter receives a complete string or array that can be modified before being returned.

If you’d like to customize and integrate additional features into the WPSSO plugin, we offer custom development services. Submit a ticket to describe your requirements, and we can give you an idea of the expected time and cost to develop your custom feature(s).

Returns a Text String

wpsso_caption ( $caption, $mod, $add_hashtags, $md_idx )
The caption used by Tumblr, Pinterest, and the Twitter sharing buttons.
wpsso_description_seed ( '', $mod, $add_hashtags, $md_idx )
wpsso_description_pre_limit ( $description )
wpsso_description ( $desc, $mod, $add_hashtags, $md_idx )
The description text used in all description meta tag.
wpsso_content_seed ( '', $mod, $use_cache, $md_idx )
wpsso_content ( $content, $mod, $use_cache, $md_idx )
The filtered (shortcodes resolved, etc.) or un-filtered (depending on settings) content of the Post or Page.
wpsso_quote_seed ( '', $mod )
wpsso_quote ( $quote, $mod )
The quote text used by the Tumblr sharing button.
wpsso_article_section ( $section, $post_id )
The section text used in the article:section meta tag.
wpsso_title_seed ( '', $mod, $add_hashtags, $md_idx )
wpsso_title_pre_limit ( $title )
wpsso_title ( $title, $mod, $add_hashtags, $md_idx )
The title text used in the og:title meta tag. If the page contains multiple pages, the page numbers are included in the title text.
wpsso_hashtags_seed ( '', $post_id, $add_hashtags )
wpsso_hashtags ( $hashtags, $post_id, $add_hashtags )
A text string of hashtags, delimited by spaces (example: #abc #def).

Returns an Array

wpsso_tags ( $tags, $post_id )
An array of WordPress and NextGEN Gallery tags (if applicable and allowed by settings) used in the article:tag meta tags. This filter takes 2 arguments, the first is the array of tags, and the second is an optional post ID number.
wpsso_wp_tags ( $tags, $post_id )
An array of WordPress Post and Page tags used in the article:tag meta tags. This filter takes 2 arguments, the first is the array of tags, and the second is an optional post ID number.

Leave a Reply

Your email address will not be published. Required fields are marked *