GT3D icon
eCommerce & WooCommerce

GT3D hooks reference

GT3D 1.2.0 has 0 actions and 9 filters, read directly from its source code on Nov 19, 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
// Change a value GT3D is about to use
add_filter( 'gt3d_ra_current_user_bypasses', function( $manage_options ) {
	// Change $manage_options here.
	return $manage_options;
}, 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

  • includes/class-gt3d-ra-roles.php line 122
    /**
     * Filter whether the current user sees every reserved page and content. Return
     * false to test the rules with an administrator account.
     */
    apply_filters( 'gt3d_ra_current_user_bypasses', current_user_can( 'manage_options' ) );
  • includes/class-gt3d-ra-protection.php line 383
    /**
     * Filter where people who cannot open a reserved post are sent.
     */
    apply_filters( 'gt3d_ra_denied_redirect', $target, $post_id );
  • includes/class-gt3d-ra-protection.php line 97
    /**
     * Filter the capability needed to reserve a page.
     */
    apply_filters( 'gt3d_ra_protect_capability', 'manage_options' );
  • includes/class-gt3d-ra-protection.php line 83
    /**
     * Filter the post types that get the "Role access" panel. The post type must
     * support "custom-fields" to use the panel of the block editor.
     */
    apply_filters( 'gt3d_ra_protectable_post_types', array( 'page', 'post' ) );
  • includes/class-gt3d-ra-refusal-page.php line 164
    /**
     * Filter the HTML of the refusal message.
     */
    apply_filters( 'gt3d_ra_refusal_message_html', $html, $from, $message );
  • includes/class-gt3d-ra-restricted-content.php line 153
    /**
     * Filter the HTML shown to people who cannot see a restricted content.
     */
    apply_filters( 'gt3d_ra_restricted_fallback', $html, $message );
  • includes/class-gt3d-ra-telemetry.php line 295
    /**
     * Filter the roles considered "used in a rule" (the Pro version adds its own:
     * menu items, categories and WooCommerce price visibility).
     */
    apply_filters( 'gt3d_ra_roles_in_rules', $roles );
  • includes/class-gt3d-ra-telemetry.php line 399
    /**
     * Filter the address that receives the usage statistics.
     */
    apply_filters( 'gt3d_ra_telemetry_url', $url );
  • includes/class-gt3d-ra-telemetry.php line 358
    /**
     * Filter the usage counts (the Pro version adds its own).
     */
    apply_filters( 'gt3d_ra_telemetry_usage', $usage );

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