There’s a few different filters you can use…
wpsso_description_seed
, wpsso_description_pre_limit
, and wpsso_description
. These will let you modify the base description for ALL meta tags.
The wpsso_og
filter will give you a hook into the Open Graph meta tags, and the wpsso_meta_schema
will give you a hook into the schema meta tags — this is the one you should use. It receives and returns an array.
In the current version, the schema description inherits the open graph description value, but the next version will call the get_description()
method directly instead. You could then hook into the wpsso_description_seed
filter and return an appropriate text string. You can tell one filter call from the next by checking the $custom value, which will be ‘schema_desc’ for that meta tag.
wpsso_description_seed ( '', $use_post = false, $use_cache = true, $add_hashtags = true, $encode = true, $custom = 'schema_desc' )
If you want to use the wpsso_description_seed
filter instead of using the wpsso_meta_schema
filter, open a ticket here http://support.wpsso.surniaulula.com/support/tickets/new and I’ll send you the current DEV version.
BTW, I’m guessing you want to change the schema description for Google+, right? Would an additional custom description in the Post / Page “Social Settings” metabox help? Maybe a “G+ / Schema Description” field?
js.
FYI – The changelog for the upcoming v2.5.5:
http://wordpress.org/plugins/wpsso/changelog/
Those changes (including two fixes) were inspired by your question this morning. 😉
js.