I just skimmed through the WPSEO_Frontend
class and found the wpseo_robots
filter for the meta robots content string.
You might try something like:
add_filter( 'wpseo_robots', function( $content )
{
// your logic here ...
return $content;
} );
to override the robots meta content from that plugin.
ps: You should consider moving the add_action
out of the class constructor.
Related Posts:
- Adding widgets to my plugin page instead of WordPress dashboard
- Adding function to Genesis genesis_header [closed]
- How do I remove an action hook inside a class that is called by another class?
- what is correct way to hook when update post
- Using register_activation_hook in classes
- Custom plugin: Trying to show saved data on frontend
- Check php version before theme activation
- How can I remove “Proudly powered by WordPress” from twentyeleven without modifying footer.php?
- add_meta_boxes action with refresh on save
- Use wc_enqueue_js only on specific pages – nested add_action
- How to Remove a Filter from the Admin List Table?
- Hooking new functions to actions + passing parameters
- Find variables available at a given hook
- Delete option value from array using update_option()
- How to set a custom path, for ajax image upload folder in admin?
- How to access function from outside of a class within this class in WP plugin?
- How to call function at the bottom of post using plugin?
- wp_loaded hook block script enquequing
- Adding Default Settings to Theme My Login plugin
- Remove an action hook within a Class
- How to pass arguments to add_action() or retrieve return value of called function?
- Contact Fom 7 – how to add custom HTML inside span.wpcf7-form-control-wrap AND IMMEDIATELY AFTER input.wpcf7-form-control?
- Set meta field to publish date + 2 weeks
- wp_head function not outputting
- Modify custom field input data before creating a new post
- Should `wp_login` be used since it’s deprecated?
- How to remove the message ‘We could not find any results for your search’ without changing template files and without adding posts/pages?
- How to catch wordpress post ID when it’s published
- WordPress redirect redirecting too many times or not at all
- Can not add admin notices from the edit_user_profile_update hook (notices not being displayed)?
- Action Hook Inside WordPress Plugin Shortcode
- Woocommerce custom Plugin in wordpress [closed]
- How to pass hook variable to function?
- using filter and hook inside class
- Get original value in save_post action hooka
- get Woocommerce product format json for WP_Query
- Register/enqueue scripts only on certain admin pages
- Is there an option to execute javascript file only on plugin activation
- Hook into all password resets in WordPress and get password before hashing?
- Submit to itself don’t work
- WordPress HTML Helper
- Plugin Hook: Get posts
- How to execute add_action() function from custom plugin to Crontrol plugin or do_action()?
- How to add custom checkout field in user details mail template
- Cannot modify header information – headers already sent
- Is there a hook that I can use when a fatal error occurs?
- Too few arguments – wp_login action
- Custom filter not affecting gtag script position in WordPress footer
- Add Imports to Existing WordPress Import Map
- Send notification email to admin for every new post published
- Adding function to child theme’s function.php
- Custom Registration username_exists / email_exists
- How can I search all plugins for composer’s vendor/autoload.php?
- WordPress WP_Query without query GET parameters
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- Comapare get_user_meta value
- How to find list of all functions bind to a particular hook from my plugin?
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- custom post type with role Vendor
- How to override a plugins script
- Can I Hook Into the TinyMCE Insert/Edit Link Button to Use Shortlink For Post?
- Include HTML (Bootstrap Modal Box) with a plugin into my header
- Can I remove or edit an include() from a function with a filter?
- Call to undefined function error in plugin
- Adding Additional Variables on Menus Page
- Dynamically adding filters
- How do I make this Metabox show current DB value?
- How to style injected code in header section?
- Add a custom class to the body tag using custom fields
- Using init hook for register_taxonomy is causing invalid_taxonomy in wp_insert_term()
- custom plugin with upload files does not work
- Must filter functions receive all arguments passed to them?
- Why doesn’t global $wp_query not get hooked?
- Creating customized php files in theme folder
- Removed jQuery script from header.php , any problems?
- Dynamically Generate Functions and Hooks
- Execute Jquery when a specific page in my plugin is loading
- How can I get plugin meta data without knowing the plugin folder?
- Using flickr api in custom wordpress plugin
- Toolbar Hidden in a Virtual Page
- PHP: How to access db the right way in plugin?
- What is the difference between Null vs Empty (Zero Length) string?
- select a single val though a table in wordpress
- calling admin-ajax.php from admin-ajax.php
- Submit form to db
- Get category id when SEO URL is turned on
- PHP: $_SESSION destroyed after page reload for my custom session
- send popup after wp_redirect()
- WordPress – Get Posts with Category data
- no_rest_route error on custom routes
- Add a custom WooCommerce settings tab with sections
- Flatten Responses returned via WP REST API via WP_Error for obfuscation
- Change image data durgin upload
- How to use wp_send_json() and output the value with ajax?
- How does add_option() function enable action hooks to fire right after actiavtion?
- save_post trigerred twice
- How to correctly escape an echo
- PHP using external anonymous function inside class
- How to sort WooCommerce products page by latest in-stock items first?
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?