Get AI SEO for FREE.
Support › Rank Math Free › how can i get the shortcode attribute
4 years, 3 months ago
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.
No schema found.
How do I retrieve the id attribute in my filter?
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.
use $post->ID
Let us know if that doesn’t work for you.
4 years, 2 months ago
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.
The ticket ‘how can i get the shortcode attribute’ is closed to new replies.