how can i get the shortcode attribute

#86446
  • Resolved Ben
    Rank Math business

    Here’s a filter:

    add_filter( 'rank_math/snippet/html', function( $shortcode_html ) {
     
     return $shortcode_html;
    
    }, 99, 2);

    Say I am using:
    No schema found.

    How do I retrieve the id attribute in my filter?

    • This topic was modified 4 years, 1 month ago by Ben.
Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for getting in touch with us.

    This is not possible in the stable release of the plugin.

    But, you can use $post->ID to get the ID in the beta version that we shared with you via email.

    Let us know if that doesn’t work for you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘how can i get the shortcode attribute’ is closed to new replies.