Password Protected icon
Admin & Maintenance

Password Protected hooks reference

  • By Saad Iqbal
  • v2.8.6
  • Updated

Password Protected 2.8.6 has 26 actions and 36 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 Password Protected fires an action
add_action( 'password_protected_register_activity_logging', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Password Protected is about to use
add_filter( 'password_protected_allowed_captcha_providers', function( $allowed ) {
	// Change $allowed here.
	return $allowed;
}, 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

Generated from Password Protected'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: