• Resolved mikes02

    (@mikes02)


    Hi,

    I am trying to add some information to the schema markup on our website. However, I am not clear on how to do that with the API docs. For example, if I wanted to add the foundingDate, what would that look like using the Yoast API?

    I thought this would work:

    add_filter( 'wpseo_schema_organization', function($data) {
    	$data['foundingDate'] = '1992';
      return $data;
    });

    But it’s not working for me.

    • This topic was modified 5 years, 4 months ago by mikes02.
    • This topic was modified 5 years, 4 months ago by mikes02.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support devnihil

    (@devnihil)

    Unfortunately we can’t offer support on custom code. Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Plugin Support Jerlyn

    (@jerparx)

    Closed. No further concerns.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using the Yoast Schema API’ is closed to new replies.