PPWP icon
Membership & Users

PPWP hooks reference

  • By WP Folio Team
  • v1.9.28 New
  • Updated

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.

functions.phpyour child theme
// 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

  • core/class-ppw-functions.php line 317 · used in 2 places
    /**
     * 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 );
  • includes/class-ppw-api.php line 759
    /**
     * Filters the "pages" derived from splitting the post content.
     */
    apply_filters( 'content_pagination', $pages, $post );
  • includes/views/shortcode/view-ppw-restriced-content-form.php line 21
    /**
     * PPWP Restricted Content Form
     */
    do_action( 'ppw_pcp_pf_desc_above_btn' );
  • core/base/class-ppw-background-task.php line 238 · used in 3 places
    apply_filters( "{$this->identifier}_cron_interval", 5 );
  • the_content

    filter
    includes/class-ppw-api.php line 809 · used in 3 places
    apply_filters( 'the_content', $post->post_content );
  • includes/services/class-ppw-shortcode.php line 447 · used in 2 places
    apply_filters( 'ppw_post_id_change_for_elementor_theme_builder', get_the_ID() );
  • includes/services/class-ppw-passwords.php line 1078 · used in 2 places
    do_action( 'ppw_redirect_after_enter_password', false );
  • includes/services/class-ppw-shortcode.php line 323 · used in 2 places
    apply_filters( 'ppw_shortcode_unlock_content_by_time', true, $attrs );
  • includes/addons/beaver-builder/modules/ppw-individual-page/class-ppw-module.php line 32 · used in 2 places
    apply_filters( 'ppw_supported_white_list_roles', array( 'administrator', 'editor', 'author', 'contributor', 'subscriber', ) );
  • includes/services/class-ppw-passwords.php line 413 · used in 2 places
    apply_filters( 'ppwp_ppf_redirect_url', $referrer_url, array( 'is_valid' => $is_valid, 'parameters' => $params_in_referer, ) );
  • includes/libs/wp-background-process/wp-background-process.php line 400
    apply_filters( "{$this->identifier}_default_time_limit", 20 );
  • includes/libs/wp-background-process/wp-background-process.php line 367
    apply_filters( "{$this->identifier}_memory_exceeded", $return );
  • includes/libs/wp-background-process/wp-background-process.php line 244
    apply_filters( "{$this->identifier}_queue_lock_time", $lock_duration );
  • includes/libs/wp-background-process/wp-background-process.php line 407
    apply_filters( "{$this->identifier}_time_exceeded", $return );
  • includes/libs/wp-background-process/wp-async-request.php line 141
    apply_filters( 'https_local_ssl_verify', false );
  • public/class-ppw-public.php line 522
    do_action( 'ppw_ajax_before_validate_password', $post_id, $password, $post_content );
  • includes/class-ppw-functions.php line 650
    apply_filters( 'ppw_allowed_master_protection_type', false );
  • admin/class-ppw-admin.php line 843
    do_action( 'ppw_before_update_category_settings', $setting_keys, $data_settings );
  • admin/class-ppw-admin.php line 1035
    do_action( 'ppw_before_update_tag_settings', $setting_keys, $data_settings );
  • admin/class-ppw-admin.php line 830
    apply_filters( 'ppw_category_data_settings', wp_unslash( $_REQUEST['settings'] ), $setting_keys );
  • includes/services/class-ppw-category.php line 359
    apply_filters( 'ppw_category_get_taxonomy', 'category', $post_id );
  • includes/services/class-ppw-category.php line 175
    apply_filters( 'ppw_category_is_enabled', $enabled, $post_id );
  • includes/services/class-ppw-category.php line 233
    apply_filters( 'ppw_category_is_valid_password', $this->is_valid_password( $protected_categories, $password, $post_id ), $is_valid, $protected_categories, $post_id, $password );
  • admin/class-ppw-admin.php line 820
    apply_filters( 'ppw_category_keys', array( 'ppwp_is_protect_category', 'ppwp_categories_password', 'ppwp_protected_categories_selected', ) );
  • includes/services/class-ppw-assets.php line 240
    do_action( 'ppw_category_page_load_assets' );
  • includes/services/class-ppw-category.php line 156
    apply_filters( 'ppw_category_unlocked', $this->unlocked, $post_id, $protected_categories );
  • includes/class-ppw-functions.php line 578
    apply_filters( 'ppw_content_compatibility', $post_content );
  • includes/services/class-ppw-customizer.php line 496
    do_action( 'ppw_customize_after_form_instructions', $wp_customize );
  • includes/services/class-ppw-customizer.php line 382
    do_action( 'ppw_customize_after_text_color', $wp_customize );
  • includes/services/class-ppw-customizer-sitewide.php line 405
    apply_filters( 'ppw_customizer_sitewide_templates', $free_templates );
  • includes/class-ppw-external-settings.php line 46
    apply_filters( 'ppw_external_tabs', array( array( 'tab' => 'recaptcha', 'tab_name' => __( 'reCAPTCHA', 'password-protect-page' ), ), array( 'tab' => 'configuration', 'tab_name' => __( 'Configuration', 'password-protect-page' ), ), ) );
  • wp-protect-password.php line 109
    do_action( 'ppw_free/loaded' );
  • includes/services/class-ppw-passwords.php line 1103
    apply_filters( 'ppw_is_valid_password', $is_valid, $post_id, $password, $current_roles );
  • admin/class-ppw-admin.php line 512
    apply_filters( 'ppw_master_password_protection_types', array() );
  • includes/class-ppw-functions.php line 690
    apply_filters( 'ppw_master_pcp_password_meta', $meta_data );
  • core/class-ppw-functions.php line 491
    apply_filters( 'ppw_not_reload_excluded', $excluded );
  • includes/services/class-ppw-shortcode.php line 594
    apply_filters( 'ppw_pcp_above_password_field', '', $attrs );
  • includes/class-ppw-api.php line 576
    apply_filters( 'ppw_pcp_api_result', $result, $data['pss'], $post );
  • includes/services/class-ppw-content-protection.php line 313
    apply_filters( 'ppw_pcp_area_is_valid_password', $is_valid_by_single, $params );
  • includes/services/class-ppw-shortcode.php line 208
    apply_filters( 'ppw_pcp_attributes', $this->attributes, $number );
  • includes/services/class-ppw-shortcode.php line 595
    apply_filters( 'ppw_pcp_below_password_field', '', $attrs );
  • includes/services/class-ppw-content-protection.php line 179
    apply_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', ) );
  • includes/services/class-ppw-content-protection.php line 214
    apply_filters( 'ppw_pcp_metabox_extra_html', '' );
  • includes/services/class-ppw-shortcode.php line 277
    apply_filters( 'ppw_pcp_password_form', $password_form, $attrs );
  • includes/class-ppw-functions.php line 708
    apply_filters( 'ppw_pcp_third_party_content_allowed', $allowed );
  • includes/services/class-ppw-content-protection.php line 448
    apply_filters( 'ppw_pcp_valid_area_password', $is_valid_cookie, $params );
  • includes/services/class-ppw-shortcode.php line 215
    apply_filters( 'ppw_pcp_valid_shortcode', $message, $attrs );
  • core/class-ppw-functions.php line 586
    apply_filters( 'ppw_pro_activated', $activated );
  • includes/services/class-ppw-recaptcha.php line 562
    apply_filters( 'ppw_recaptcha_allowed_to_load_script', $allowed );
  • includes/services/class-ppw-recaptcha.php line 158
    apply_filters( 'ppw_recaptcha_error_message', $message, $params );
  • includes/class-ppw-external-settings.php line 104
    do_action( "ppw_render_external_content_{$tab['tab']}" );
  • includes/views/misc/view-ppw-misc.php line 32
    do_action( 'ppw_render_misc_form' );
  • includes/services/class-ppw-shortcode.php line 360
    apply_filters( 'ppw_shortcode_supported_class_name', array( 'defaultType' => PPW_Constants::DEFAULT_SHORTCODE_CLASS_NAME, ) );
  • includes/services/class-ppw-shortcode.php line 234
    apply_filters( 'ppw_shortcode_unlock_content', $this->is_unlock_content_by_time( $attrs ), $attrs );
  • admin/class-ppw-admin.php line 742
    apply_filters( 'ppw_shortcode_valid_input_data', array( PPW_Constants::USE_SHORTCODE_PAGE_BUILDER, ) );
  • core/class-ppw-functions.php line 367
    apply_filters( 'ppw_single_form_fields', $inputs, $post_id );
  • includes/views/entire-site/view-ppw-form-password.php line 55
    do_action( 'ppw_sitewide_above_password_form' );
  • includes/views/entire-site/view-ppw-form-password.php line 52
    do_action( 'ppw_sitewide_above_password_form_container' );
  • includes/views/entire-site/view-ppw-form-password.php line 67
    do_action( 'ppw_sitewide_above_submit_button' );
  • admin/class-ppw-admin.php line 1210
    do_action( 'ppw_sitewide_before_validate_password', $password );
  • includes/views/entire-site/view-ppw-form-password.php line 70
    do_action( 'ppw_sitewide_below_password_form' );
  • includes/views/entire-site/view-ppw-form-password.php line 38
    do_action( 'ppw_sitewide_custom_internal_css' );
  • includes/views/entire-site/view-ppw-form-password.php line 19
    apply_filters( 'ppw_sitewide_error_message', esc_html__( 'Please enter the correct password!', 'password-protect-page' ) );
  • includes/views/entire-site/view-ppw-form-password.php line 32
    apply_filters( 'ppw_sitewide_external_css', $internal_css );
  • includes/views/entire-site/view-ppw-form-password.php line 18
    apply_filters( 'ppw_sitewide_form_action', '?action=ppw_postpass' );
  • includes/services/class-ppw-entire-site.php line 69
    apply_filters( 'ppw_sitewide_valid_password', $validated );
  • admin/class-ppw-admin.php line 1022
    apply_filters( 'ppw_tag_data_settings', wp_unslash( $_REQUEST['settings'] ), $setting_keys );
  • includes/services/class-ppw-post-tag.php line 364
    apply_filters( 'ppw_tag_get_taxonomy', 'post_tag', $post_id );
  • includes/services/class-ppw-post-tag.php line 176
    apply_filters( 'ppw_tag_is_enabled', $enabled, $post_id );
  • includes/services/class-ppw-post-tag.php line 234
    apply_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

    filter
    admin/class-ppw-admin.php line 1013
    apply_filters( 'ppw_tag_keys', array( 'ppwp_is_protect_tag', 'ppwp_tags_password', 'ppwp_protected_tags_selected', ) );
  • includes/services/class-ppw-post-tag.php line 157
    apply_filters( 'ppw_tag_unlocked', $this->unlocked, $post_id, $protected_tags );
  • includes/services/class-ppw-passwords.php line 443
    apply_filters( 'ppw_use_callback_url', $using_cb );
  • includes/class-ppw-functions.php line 529
    apply_filters( 'ppw_validated_pcp_password', $default_args, $password, $parsed_atts, $shortcode );
  • includes/views/entire-site/view-ppw-form-password.php line 41
    do_action( 'ppwp_countdown_timer_styles' );
  • includes/services/class-ppw-customizer-sitewide.php line 194
    apply_filters( 'ppwp_customizer_custom_fields', $wp_customize, $wp_customize );
  • includes/services/class-ppw-assets.php line 223
    apply_filters( 'ppwp_is_load_assets_for_category_page', $is_show );
  • admin/class-ppw-admin.php line 1298
    apply_filters( 'ppwp_is_rest_protected_post', $is_protected, $post_id, $request );
  • admin/class-ppw-admin.php line 1333
    apply_filters( 'ppwp_is_rest_sitewide_protected', $is_protect, $request );
  • core/class-ppw-functions.php line 438
    apply_filters( 'ppwp_ppf_action_url', $url );
  • core/class-ppw-functions.php line 390
    do_action( 'ppwp_ppf_fields_after_password' );
  • core/class-ppw-functions.php line 388
    do_action( 'ppwp_ppf_fields_before_password' );
  • includes/services/class-ppw-passwords.php line 409
    apply_filters( 'ppwp_ppf_redirect_url_before_return_content', $url_redirect . $new_param );
  • includes/services/class-ppw-passwords.php line 404
    apply_filters( 'ppwp_ppf_redirect_url_param_before_return_content', $new_param );
  • includes/services/class-ppw-passwords.php line 379
    apply_filters( 'ppwp_ppf_referrer_url', $referrer_url, array( 'is_valid' => $is_valid, 'parameters' => $params_in_referer, ) );
  • includes/views/entire-site/view-ppw-form-password.php line 74
    do_action( 'ppwp_render_sitewide_countdown' );
  • admin/class-ppw-admin.php line 1303
    apply_filters( 'ppwp_rest_protected_post_message', __( 'The content of this post is restricted and cannot be accessed.', 'password-protect-page' ), $post_id );
  • admin/class-ppw-admin.php line 1338
    apply_filters( 'ppwp_rest_sitewide_protection_message', __( 'Access to the REST API is restricted due to sitewide protection.', 'password-protect-page' ) );
  • includes/views/misc/view-ppw-misc.php line 14
    do_action( 'ppwp_settings_advanced_top_options' );
  • includes/class-ppw-functions.php line 449
    apply_filters( 'ppwp_shortcode_enable_page_builder', $enabled );
  • includes/services/class-ppw-shortcode.php line 767
    apply_filters( 'ppwp_shortcode_is_empty_content', $is_empty, $content, $attrs );
  • admin/class-ppw-admin.php line 1288
    apply_filters( 'ppwp_should_validate_rest_request', $validate, $route, $request );
  • includes/class-ppw-functions.php line 437
    apply_filters( 'ppwp_single_has_bypass', $has_bypass );
  • includes/services/class-ppw-shortcode.php line 533
    apply_filters( 'ppwp_single_password_pattern', $pattern, $keyword, $item );
  • includes/class-ppw-functions.php line 425
    apply_filters( 'ppwp_sitewide_has_bypass', $has_bypass );
  • includes/views/entire-site/view-ppw-form-password.php line 40
    do_action( 'ppwp_sitewide_hide_password_form' );
  • includes/class-ppw-functions.php line 703
    do_action( 'ppwp_track_password', $data );
  • includes/class-ppw-functions.php line 399
    apply_filters( 'the_ppw_password_message', $content );
  • core/class-ppw-functions.php line 705
    do_action( 'w3tc_flush_url', get_permalink( $post_id ) );
  • core/class-ppw-functions.php line 701
    do_action( 'wpfc_clear_post_cache_by_id', false, $post_id );
  • wpfolio-analytics/wpfolio-analytics.php line 82
    do_action( 'wpfolio_ppwp_anylc_loaded' );
  • includes/class-ppw-functions.php line 839
    apply_filters( 'wpml_element_language_details', null, array( 'element_id' => $post_id, 'element_type' => $post_type, ) );
  • includes/class-ppw-functions.php line 871
    apply_filters( 'wpml_element_trid', null, $post_id, $element_type );
  • includes/class-ppw-functions.php line 876
    apply_filters( 'wpml_get_element_translations', null, $trid, $element_type );
  • includes/class-ppw-functions.php line 929
    do_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: