-
Hello,
I’m trying to change the SEO details on admin column for specific post IDs. For a few Post IDs I don’t want to have any output there. The same applies to the SEO title and the SEO description.
I wrote this code here:
add_action( 'manage_pages_custom_column', 'edit_rank_math_seo_details_column', 10, 2); function edit_rank_math_seo_details_column( $column, $post_id ) { if ($post_id === 1644) { if ( 'rank_math_seo_details' === $column || 'rank_math_title' === $column || 'rank_math_description' === $column ) { echo '-'; } } }
The code just adds my input to the beginning. Then the content of Rank Math follows again. See image: https://ibb.co/mh2DsnL
Is there a rank math hook to change that?
Many thanks for your help.Regards from Germany
Oleg
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The ticket ‘Hide SEO details on admin column for specific post IDs’ is closed to new replies.