Enhancement for Rankmath Filter ??
-
### UPDATE ###
I improve the filter by using a new hook that the plugin use in the sitemap admin settings :
https://zupimages.net/up/19/47/zqts.pngadd_filter( 'rank_math/sitemap/posts_to_exclude', function( $posts_to_exclude ){ $login_designer_page_ID = Login_Designer()->get_login_designer_page()->ID; $posts_ids = [ $login_designer_page_ID ]; // You can add all the post ids you want to exclude seperated by coma. return array_merge( $posts_to_exclude,$posts_ids ); });
Note : This hook is not yet add in the documentation i have signal the plugins support for this
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Enhancement for Rankmath Filter ??’ is closed to new replies.