Yoast Test Helper icon
Developer Tools

Yoast Test Helper hooks reference

  • By Yoast
  • v1.19
  • Updated

Yoast Test Helper 1.19 has 5 actions and 5 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Yoast Test Helper fires an action
add_action( 'Yoast\WP\Test_Helper\notification', function( $notification ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Yoast Test Helper is about to use
add_filter( 'Yoast\WP\Test_Helper\admin_page', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • src/admin-debug-info.php line 83 · used in 14 places
    apply_filters( 'Yoast\WP\Test_Helper\admin_page', '' );
  • src/downgrader.php line 65 · used in 9 places
    do_action( 'Yoast\WP\Test_Helper\notification', new Notification( \sprintf( \__( '%1$s has been succesfully downgraded to version %2$s.', 'yoast-test-helper' ), 'Yoast SEO', $target_version, ), 'success', ) );
  • src/wordpress-plugins/yoast-seo.php line 297
    do_action( 'wpseo_register_capabilities' );
  • src/wordpress-plugins/yoast-seo.php line 304
    do_action( 'wpseo_register_capabilities_premium' );
  • src/wordpress-plugins/yoast-seo.php line 291
    do_action( 'wpseo_register_roles' );
  • src/xml-sitemaps.php line 62
    apply_filters( 'wpseo_sitemap_entries_per_page', 1000 );
  • src/logger/database-log-storage.php line 116
    apply_filters( 'Yoast\WP\Test_Helper\logger_max_rows', self::DEFAULT_MAX_ROWS );
  • src/admin-page.php line 88
    do_action( 'Yoast\WP\Test_Helper\notifications', $this );
  • src/plugin-toggler.php line 448
    apply_filters( 'Yoast\WP\Test_Helper\plugin_toggle_extend', $plugin_groups );
  • src/plugin-toggler.php line 82
    apply_filters( 'Yoast\WP\Test_Helper\plugin_toggler_filter', $this->grouped_name_filter );

Generated from Yoast Test Helper's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: