Remove action noindex_expired_filled_job_listings
-
I’m having issues with the functionality of filled jobs being changed into noindex. I would like to use Rankmaths SEO tool’s functionality and some custom code the set filled jobs to noindex.
Reference: https://support.rankmath.com/ticket/exclude-custom-post-type-with-specific-status-from-sitemap/?view=allIn order to do that, I need to remove
add_action( 'wp_head', [ $this, 'noindex_expired_filled_job_listings' ], 0 );
from class-wp-job-manager-post-types.php.I try to remove this action using the following code in functions.php, but it isn’t working:
add_action( 'wp_head', 'remove_noindex_expired_filled_job_listings' ); function remove_noindex_expired_filled_job_listings() { remove_action( 'wp_head', array( 'WP_Job_Manager_Post_Types', 'noindex_expired_filled_job_listings' ) ); }
Does anyone know how to remove this action without touching the plugin?
Thanks in advance.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Remove action noindex_expired_filled_job_listings’ is closed to new replies.