Privacy Policy Generator, Terms & Conditions, GDPR, CCPA, Cookie Policy & Disclaimer Templates icon
Analytics & Tracking

Privacy Policy Generator, Terms & Conditions, GDPR, CCPA, Cookie Policy & Disclaimer Templates hooks reference

  • By WP Legal Pages
  • v3.8.2
  • Updated

Privacy Policy Generator, Terms & Conditions, GDPR, CCPA, Cookie Policy & Disclaimer Templates 3.8.2 has 21 actions and 26 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 Privacy Policy Generator, Terms & Conditions, GDPR, CCPA, Cookie Policy & Disclaimer Templates fires an action
add_action( 'wplegalpages_admin_settings', function( $lp_general ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Privacy Policy Generator, Terms & Conditions, GDPR, CCPA, Cookie Policy & Disclaimer Templates is about to use
add_filter( 'navigation_widgets_format', function( $format ) {
	// Change $format here.
	return $format;
}, 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

  • admin/class-wp-legal-pages-admin.php line 3997
    /**
     * Filters the posts displayed in the 'View All' tab of the current post type's
     * menu items meta box.
     */
    apply_filters( "nav_menu_items_{$post_type_name}", $posts, $args, $post_type );
  • admin/class-wp-legal-pages-admin.php line 3924
    /**
     * Filters the posts displayed in the 'Most Recent' tab of the current post
     * type's menu items meta box.
     */
    apply_filters( "nav_menu_items_{$post_type_name}_recent", $most_recent, $args, array(), $recent_args );
  • widgets/class-wp-widget-legal-pages.php line 107
    /**
     * This filter is documented in
     * wp-includes/widgets/class-wp-nav-menu-widget.php
     */
    apply_filters( 'navigation_widgets_format', $format );
  • widgets/class-wp-widget-legal-pages.php line 83
    /**
     * Filters the arguments for the WPLegalPages widget.
     */
    apply_filters( 'widget_pages_args', array( 'title_li' => '', 'echo' => 0, 'sort_column' => $sortby, 'exclude' => $exclude, 'meta_key' => 'is_legal', 'meta_value' => 'yes', ), $instance );
  • widget_title

    filter
    widgets/class-wp-widget-legal-pages.php line 63
    /**
     * Filters the widget title.
     */
    apply_filters( 'widget_title', $title, $instance, $this->id_base );
  • the_title

    filter
    admin/class-wp-legal-pages-admin.php line 1737 · used in 5 places
    apply_filters( 'the_title', $page_title );
  • admin/admin-settings.php line 217 · used in 3 places
    do_action( 'wplegalpages_admin_settings', $lp_general );
  • admin/create-page.php line 128 · used in 3 places
    apply_filters( 'wplegalpages_shortcode_content', $content );
  • wplegalpages.php line 213 · used in 2 places
    do_action( 'appwplp_secret_key_generated', $existing_key );
  • admin/admin-settings.php line 138 · used in 2 places
    do_action( 'wp_legalpages_notice' );
  • public/class-wp-legal-pages-public.php line 415 · used in 2 places
    apply_filters( 'wplegalpages_pro_description', get_option( '_lp_description', __( "To proceed, we need to verify that you're {age} or older.<br><span>Please verify your age.</span><br>{form}", 'wplegalpages' ) ) );
  • public/templates/wplegalpages-age-button.php line 16 · used in 2 places
    apply_filters( 'wplegalpages_pro_invalid_description', get_option( '_lp_invalid_description', __( 'We are Sorry.', 'wplegalpages' ) ) );
  • admin/admin-settings-ver818.php line 126 · used in 2 places
    apply_filters( 'wplegalpages_save_settings', $lp_general, $_POST );
  • admin_head

    action
    admin/class-wp-legal-pages-admin.php line 4772
    do_action( 'admin_head' );
  • admin/class-wp-legal-pages-admin.php line 4771
    do_action( 'admin_print_scripts' );
  • admin/class-wp-legal-pages-admin.php line 4770
    do_action( 'admin_print_styles' );
  • includes/class-wp-legal-pages.php line 404
    do_action( 'admin_print_styles_post_php' );
  • admin/class-wp-legal-pages-admin.php line 2747
    do_action( 'gdpr_help_page_content' );
  • public/templates/wplegalpages-age-verify-form.php line 119
    apply_filters( 'lp_confirm_text', esc_attr__( 'I am at least %1$s years old', 'wplegalpages' ) );
  • public/class-wp-legal-pages-public.php line 447
    apply_filters( 'lp_minimum_age', $minimum_age );
  • wc-am-client-legalpages.php line 217
    apply_filters( 'wc_am_client_uninstall_disable', true );
  • admin/admin-settings.php line 444
    do_action( 'wp_legalpages_after_data_tab' );
  • admin/admin-settings.php line 441
    do_action( 'wp_legalpages_after_general_tab' );
  • admin/class-wp-legal-pages-admin.php line 3348
    apply_filters( 'wplegal_check_license_status', true );
  • admin/class-wp-legal-pages-admin.php line 3306
    apply_filters( 'wplegalpages_compliances_options', $options_object );
  • admin/create-page.php line 89
    apply_filters( 'wplegalpages_pages_limit', $max_limit );
  • public/class-wp-legal-pages-public.php line 224
    do_action( 'wplegalpages_pro_after_form' );
  • public/class-wp-legal-pages-public.php line 227
    do_action( 'wplegalpages_pro_after_modal' );
  • public/class-wp-legal-pages-public.php line 220
    do_action( 'wplegalpages_pro_before_form' );
  • public/class-wp-legal-pages-public.php line 217
    do_action( 'wplegalpages_pro_before_modal' );
  • public/class-wp-legal-pages-public.php line 163
    apply_filters( 'wplegalpages_pro_confirmation_required', $return );
  • public/templates/wplegalpages-age-verify-form.php line 132
    do_action( 'wplegalpages_pro_form_after_inputs' );
  • public/templates/wplegalpages-age-verify-form.php line 74
    do_action( 'wplegalpages_pro_form_before_inputs' );
  • public/templates/wplegalpages-age-verify-form.php line 15
    apply_filters( 'wplegalpages_pro_form_submit_label', __( 'VERIFY AGE', 'wplegalpages' ) );
  • public/class-wp-legal-pages-public.php line 363
    apply_filters( 'wplegalpages_pro_get_input_type', get_option( '_lp_input_type', 'dropdowns' ) );
  • public/class-wp-legal-pages-public.php line 393
    apply_filters( 'wplegalpages_pro_needs_verification', $return );
  • public/class-wp-legal-pages-public.php line 404
    apply_filters( 'wplegalpages_pro_only_content_restricted', $only_content_restricted );
  • public/class-wp-legal-pages-public.php line 305
    apply_filters( 'wplegalpages_pro_passed_verify', $is_verified );
  • public/class-wp-legal-pages-public.php line 343
    apply_filters( 'wplegalpages_pro_registration_text', esc_attr__( 'I am at least %1$s years old', 'wplegalpages' ), $this->wplegalpages_pro_get_minimum_age() );
  • public/class-wp-legal-pages-public.php line 253
    apply_filters( 'wplegalpages_pro_restricted_content_message', __( 'You must be atleast {age} years of age to view this content.<br>{form}', 'wplegalpages' ) . ' <a href="%2s">' . __( 'Please verify your age', 'wplegalpages' ) . '</a>.' );
  • public/class-wp-legal-pages-public.php line 317
    do_action( 'wplegalpages_pro_was_not_verified' );
  • public/class-wp-legal-pages-public.php line 307
    do_action( 'wplegalpages_pro_was_verified' );
  • admin/admin-settings.php line 1389
    do_action( 'wplegalpages_shortcodes_table' );

Generated from Privacy Policy Generator, Terms & Conditions, GDPR, CCPA, Cookie Policy & Disclaimer Templates'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: