Pay4All Age Verification icon
Utilities

Pay4All Age Verification hooks reference

  • By pay4all
  • v1.7.1 New
  • Updated

Pay4All Age Verification 1.7.1 has 1 actions and 7 filters, read directly from its source code on Nov 18, 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 Pay4All Age Verification fires an action
add_action( 'pay4all_age_token_ensured', function( $existing ) {
	// Your code runs here.
}, 10, 1 );

// Change a value Pay4All Age Verification is about to use
add_filter( 'pay4all_age_lightbox_capabilities', 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/Services/Kyc.php line 178 · used in 3 places
    /**
     * Fires whenever a KYC session token is confirmed on the server (cache-hit,
     * disk-rehydration or fresh-mint path). Companion integrations (pay4all-pro's
     * WooBridge) hook here to mirror the token into their own durable channels —
     * e.g. `WC()->session` — as a fallback for cookies that fail to round-trip
     * (SameSite, cross-device QR).
     */
    do_action( 'pay4all_age_token_ensured', $existing );
  • src/Admin/UserProfile.php line 502
    /**
     * Filters the list of capabilities that grant lightbox access.
     */
    apply_filters( 'pay4all_age_lightbox_capabilities', [ 'edit_users' ] );
  • src/Services/Kyc.php line 1024
    /**
     * Filters whether an order id belongs to a companion order type. Companion
     * integrations (pay4all-pro's WooBridge) hook this filter and return true when
     * `wc_get_order($order_id)` succeeds.
     */
    apply_filters( 'pay4all_age_order_exists', false, $order_id );
  • src/Services/Kyc.php line 894
    /**
     * Filters the KYC token when the POST body and the cookie both failed to yield
     * a valid one. Companion integrations (pay4all- pro's WooBridge) hook this
     * filter to read the token from their own durable channel (WC session, custom
     * cookie, etc.).
     */
    apply_filters( 'pay4all_age_recover_token', $token );
  • src/Services/ResendRequest.php line 141
    /**
     * Filters the recipient of the « resend received » admin e-mail. Return an
     * empty string to skip the notification entirely.
     */
    apply_filters( 'pay4all_age_resend_admin_recipient', $to, $order_id, $slots );
  • src/Services/Kyc.php line 361
    apply_filters( 'pay4all_age_product_is_required', false, $product_id );
  • src/Services/Kyc.php line 331
    apply_filters( 'wpml_element_trid', null, $product_id, 'post_product' );
  • src/Services/Kyc.php line 334
    apply_filters( 'wpml_get_element_translations', null, $trid, 'post_product' );

Generated from Pay4All Age Verification's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

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