PPWP 1.9.28 has 33 actions and 87 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.
// Run your own code when PPWP fires an action
add_action( 'ppw_pcp_pf_desc_above_btn', function() {
// Your code runs here.
}, 10, 1 );
// Change a value PPWP is about to use
add_filter( 'ppwp_customize_ppf', function( $value, $post_id ) {
// Change $value here.
return $value;
}, 10, 2 );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
-
ppwp_customize_ppf
filter/** * Fire hooks that can customize the from text. Update the customize attributes * that easier for user to customize. */ apply_filters( 'ppwp_customize_ppf', array( 'submit_label' => $submit_label, 'password_label' => $password_label, 'description' => $form_message, 'headline' => $headline_text, 'error_msg' => $wrong_password_text, 'show_password_label' => $show_password_text, ), $post_id ); -
content_pagination
filter/** * Filters the "pages" derived from splitting the post content. */ apply_filters( 'content_pagination', $pages, $post ); -
ppw_pcp_pf_desc_above_btn
action/** * PPWP Restricted Content Form */ do_action( 'ppw_pcp_pf_desc_above_btn' ); -
ppw_cookie_expire
filterapply_filters( 'ppw_cookie_expire', $expire ); -
ppwp_cookie_expiry
filterapply_filters( 'ppwp_cookie_expiry', $expire ); -
apply_filters( "{$this->identifier}_cron_interval", 5 ); -
the_content
filterapply_filters( 'the_content', $post->post_content ); -
ppw_is_valid_cookie
filterapply_filters( 'ppw_is_valid_cookie', $is_valid_master_password, $post_id ); -
apply_filters( 'ppw_post_id_change_for_elementor_theme_builder', get_the_ID() ); -
do_action( 'ppw_redirect_after_enter_password', false ); -
apply_filters( 'ppw_shortcode_after_check_is_valid_password_with_cookie', $is_valid, $password, array() ); -
apply_filters( 'ppw_shortcode_is_valid_password_with_cookie', false, $password, $_COOKIE ); -
apply_filters( 'ppw_shortcode_unlock_content_by_time', true, $attrs ); -
apply_filters( 'ppw_supported_white_list_roles', array( 'administrator', 'editor', 'author', 'contributor', 'subscriber', ) ); -
ppwp_ppf_redirect_url
filterapply_filters( 'ppwp_ppf_redirect_url', $referrer_url, array( 'is_valid' => $is_valid, 'parameters' => $params_in_referer, ) ); -
apply_filters( "{$this->identifier}_default_time_limit", 20 ); -
apply_filters( "{$this->identifier}_memory_exceeded", $return ); -
apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration ); -
apply_filters( "{$this->identifier}_time_exceeded", $return ); -
https_local_ssl_verify
filterapply_filters( 'https_local_ssl_verify', false ); -
do_action( 'ppw_after_save_section_cookie', $password_info ); -
do_action( 'ppw_ajax_before_validate_password', $post_id, $password, $post_content ); -
apply_filters( 'ppw_allowed_master_protection_type', false ); -
do_action( 'ppw_before_update_category_settings', $setting_keys, $data_settings ); -
do_action( 'ppw_before_update_tag_settings', $setting_keys, $data_settings ); -
do_action( 'ppw_category_after_set_password_to_cookie', $categories_id, $password_info, $post_id ); -
ppw_category_data_settings
filterapply_filters( 'ppw_category_data_settings', wp_unslash( $_REQUEST['settings'] ), $setting_keys ); -
ppw_category_get_taxonomy
filterapply_filters( 'ppw_category_get_taxonomy', 'category', $post_id ); -
ppw_category_is_enabled
filterapply_filters( 'ppw_category_is_enabled', $enabled, $post_id ); -
ppw_category_is_valid_cookie
filterapply_filters( 'ppw_category_is_valid_cookie', $this->is_valid_cookie(), $post_id, $post, $required ); -
apply_filters( 'ppw_category_is_valid_password', $this->is_valid_password( $protected_categories, $password, $post_id ), $is_valid, $protected_categories, $post_id, $password ); -
ppw_category_keys
filterapply_filters( 'ppw_category_keys', array( 'ppwp_is_protect_category', 'ppwp_categories_password', 'ppwp_protected_categories_selected', ) ); -
do_action( 'ppw_category_page_load_assets' ); -
ppw_category_unlocked
filterapply_filters( 'ppw_category_unlocked', $this->unlocked, $post_id, $protected_categories ); -
ppw_content_compatibility
filterapply_filters( 'ppw_content_compatibility', $post_content ); -
ppw_cookie_master_passwords
filterapply_filters( 'ppw_cookie_master_passwords', $master_passwords, $post_id ); -
do_action( 'ppw_customize_after_form_instructions', $wp_customize ); -
do_action( 'ppw_customize_after_text_color', $wp_customize ); -
apply_filters( 'ppw_customizer_sitewide_templates', $free_templates ); -
ppw_external_tabs
filterapply_filters( 'ppw_external_tabs', array( array( 'tab' => 'recaptcha', 'tab_name' => __( 'reCAPTCHA', 'password-protect-page' ), ), array( 'tab' => 'configuration', 'tab_name' => __( 'Configuration', 'password-protect-page' ), ), ) ); -
ppw_free/loaded
actiondo_action( 'ppw_free/loaded' ); -
ppw_is_valid_password
filterapply_filters( 'ppw_is_valid_password', $is_valid, $post_id, $password, $current_roles ); -
apply_filters( 'ppw_master_password_protection_types', array() ); -
ppw_master_pcp_password_meta
filterapply_filters( 'ppw_master_pcp_password_meta', $meta_data ); -
ppw_not_reload_excluded
filterapply_filters( 'ppw_not_reload_excluded', $excluded ); -
ppw_pcp_above_password_field
filterapply_filters( 'ppw_pcp_above_password_field', '', $attrs ); -
ppw_pcp_api_result
filterapply_filters( 'ppw_pcp_api_result', $result, $data['pss'], $post ); -
apply_filters( 'ppw_pcp_area_is_valid_password', $is_valid_by_single, $params ); -
ppw_pcp_attributes
filterapply_filters( 'ppw_pcp_attributes', $this->attributes, $number ); -
ppw_pcp_below_password_field
filterapply_filters( 'ppw_pcp_below_password_field', '', $attrs ); -
ppw_pcp_metabox_attributes
filterapply_filters( 'ppw_pcp_metabox_attributes', array( 'title' => __( 'Password Protect WordPress', 'password-protect-page' ), 'callback' => array( $this, 'display_metabox' ), 'screen' => array( self::POST_TYPE ), 'context' => 'side', 'priority' => 'high', ) ); -
ppw_pcp_metabox_extra_html
filterapply_filters( 'ppw_pcp_metabox_extra_html', '' ); -
ppw_pcp_password_form
filterapply_filters( 'ppw_pcp_password_form', $password_form, $attrs ); -
apply_filters( 'ppw_pcp_third_party_content_allowed', $allowed ); -
ppw_pcp_valid_area_password
filterapply_filters( 'ppw_pcp_valid_area_password', $is_valid_cookie, $params ); -
ppw_pcp_valid_shortcode
filterapply_filters( 'ppw_pcp_valid_shortcode', $message, $attrs ); -
ppw_pro_activated
filterapply_filters( 'ppw_pro_activated', $activated ); -
apply_filters( 'ppw_recaptcha_allowed_to_load_script', $allowed ); -
ppw_recaptcha_error_message
filterapply_filters( 'ppw_recaptcha_error_message', $message, $params ); -
do_action( "ppw_render_external_content_{$tab['tab']}" ); -
ppw_render_misc_form
actiondo_action( 'ppw_render_misc_form' ); -
apply_filters( 'ppw_shortcode_supported_class_name', array( 'defaultType' => PPW_Constants::DEFAULT_SHORTCODE_CLASS_NAME, ) ); -
ppw_shortcode_unlock_content
filterapply_filters( 'ppw_shortcode_unlock_content', $this->is_unlock_content_by_time( $attrs ), $attrs ); -
apply_filters( 'ppw_shortcode_valid_input_data', array( PPW_Constants::USE_SHORTCODE_PAGE_BUILDER, ) ); -
ppw_single_form_fields
filterapply_filters( 'ppw_single_form_fields', $inputs, $post_id ); -
do_action( 'ppw_sitewide_above_password_form' ); -
do_action( 'ppw_sitewide_above_password_form_container' ); -
do_action( 'ppw_sitewide_above_submit_button' ); -
do_action( 'ppw_sitewide_before_validate_password', $password ); -
do_action( 'ppw_sitewide_below_password_form' ); -
apply_filters( 'ppw_sitewide_cookie_expiration', $expiration, $password ); -
do_action( 'ppw_sitewide_custom_internal_css' ); -
ppw_sitewide_error_message
filterapply_filters( 'ppw_sitewide_error_message', esc_html__( 'Please enter the correct password!', 'password-protect-page' ) ); -
ppw_sitewide_external_css
filterapply_filters( 'ppw_sitewide_external_css', $internal_css ); -
ppw_sitewide_form_action
filterapply_filters( 'ppw_sitewide_form_action', '?action=ppw_postpass' ); -
ppw_sitewide_valid_password
filterapply_filters( 'ppw_sitewide_valid_password', $validated ); -
do_action( 'ppw_tag_after_set_password_to_cookie', $tag_id, $password_info, $post_id ); -
ppw_tag_data_settings
filterapply_filters( 'ppw_tag_data_settings', wp_unslash( $_REQUEST['settings'] ), $setting_keys ); -
ppw_tag_get_taxonomy
filterapply_filters( 'ppw_tag_get_taxonomy', 'post_tag', $post_id ); -
ppw_tag_is_enabled
filterapply_filters( 'ppw_tag_is_enabled', $enabled, $post_id ); -
ppw_tag_is_valid_cookie
filterapply_filters( 'ppw_tag_is_valid_cookie', $this->is_valid_cookie(), $post_id, $post, $required ); -
ppw_tag_is_valid_password
filterapply_filters( 'ppw_tag_is_valid_password', $this->is_valid_password( $protected_tags, $password, $post_id ), $is_valid, $protected_tags, $post_id, $password ); -
ppw_tag_keys
filterapply_filters( 'ppw_tag_keys', array( 'ppwp_is_protect_tag', 'ppwp_tags_password', 'ppwp_protected_tags_selected', ) ); -
ppw_tag_unlocked
filterapply_filters( 'ppw_tag_unlocked', $this->unlocked, $post_id, $protected_tags ); -
ppw_use_callback_url
filterapply_filters( 'ppw_use_callback_url', $using_cb ); -
ppw_validated_pcp_password
filterapply_filters( 'ppw_validated_pcp_password', $default_args, $password, $parsed_atts, $shortcode ); -
ppwp_access_link
filterapply_filters( 'ppwp_access_link', $permalink, $post_id ); -
ppwp_countdown_timer_styles
actiondo_action( 'ppwp_countdown_timer_styles' ); -
apply_filters( 'ppwp_customizer_custom_fields', $wp_customize, $wp_customize ); -
apply_filters( 'ppwp_is_load_assets_for_category_page', $is_show ); -
ppwp_is_rest_protected_post
filterapply_filters( 'ppwp_is_rest_protected_post', $is_protected, $post_id, $request ); -
apply_filters( 'ppwp_is_rest_sitewide_protected', $is_protect, $request ); -
ppwp_ppf_action_url
filterapply_filters( 'ppwp_ppf_action_url', $url ); -
do_action( 'ppwp_ppf_fields_after_password' ); -
do_action( 'ppwp_ppf_fields_before_password' ); -
apply_filters( 'ppwp_ppf_redirect_url_before_return_content', $url_redirect . $new_param ); -
apply_filters( 'ppwp_ppf_redirect_url_param_before_return_content', $new_param ); -
ppwp_ppf_referrer_url
filterapply_filters( 'ppwp_ppf_referrer_url', $referrer_url, array( 'is_valid' => $is_valid, 'parameters' => $params_in_referer, ) ); -
do_action( 'ppwp_render_sitewide_countdown' ); -
apply_filters( 'ppwp_rest_protected_post_message', __( 'The content of this post is restricted and cannot be accessed.', 'password-protect-page' ), $post_id ); -
apply_filters( 'ppwp_rest_sitewide_protection_message', __( 'Access to the REST API is restricted due to sitewide protection.', 'password-protect-page' ) ); -
do_action( 'ppwp_settings_advanced_top_options' ); -
apply_filters( 'ppwp_shortcode_enable_page_builder', $enabled ); -
apply_filters( 'ppwp_shortcode_is_empty_content', $is_empty, $content, $attrs ); -
apply_filters( 'ppwp_should_validate_rest_request', $validate, $route, $request ); -
ppwp_single_has_bypass
filterapply_filters( 'ppwp_single_has_bypass', $has_bypass ); -
ppwp_single_password_pattern
filterapply_filters( 'ppwp_single_password_pattern', $pattern, $keyword, $item ); -
ppwp_sitewide_has_bypass
filterapply_filters( 'ppwp_sitewide_has_bypass', $has_bypass ); -
do_action( 'ppwp_sitewide_hide_password_form' ); -
ppwp_track_password
actiondo_action( 'ppwp_track_password', $data ); -
the_ppw_password_message
filterapply_filters( 'the_ppw_password_message', $content ); -
w3tc_flush_url
actiondo_action( 'w3tc_flush_url', get_permalink( $post_id ) ); -
wpfc_clear_post_cache_by_id
actiondo_action( 'wpfc_clear_post_cache_by_id', false, $post_id ); -
wpfolio_ppwp_anylc_loaded
actiondo_action( 'wpfolio_ppwp_anylc_loaded' ); -
apply_filters( 'wpml_element_language_details', null, array( 'element_id' => $post_id, 'element_type' => $post_type, ) ); -
wpml_element_trid
filterapply_filters( 'wpml_element_trid', null, $post_id, $element_type ); -
apply_filters( 'wpml_get_element_translations', null, $trid, $element_type ); -
wpml_sync_custom_field
actiondo_action( 'wpml_sync_custom_field', $post_id, $meta_key );
Generated from PPWP'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: