• Resolved AracornRed

    (@aracornred)


    Hi, great work on this plugin. One quick question: Is there any way to modify <meta itemprop=”description”..> independently of <meta property=”og:description”..> with a filter? I checked your docs, but I only see a filter for og:description and it always changes both tags.

    https://wordpress.org/plugins/wpsso/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author JS Morisset

    (@jsmoriss)

    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.

    Plugin Author JS Morisset

    (@jsmoriss)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change schema itemprop description vs og:description’ is closed to new replies.