jetpack_contact_form_use_package

jetpack_contact_form_use_package

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: jetpack.13.5

apply_filters('jetpack_contact_form_use_package') is found 2 times:

  • /class.jetpack-gutenberg.php line 733
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
        /**
         * Prevent the registration of the blocks from extensions/blocks/contact-form
         * if the Forms package is enabled.
         */
        'is_form_package_enabled'       => apply_filters( 'jetpack_contact_form_use_package', true ),
    ),
    'siteFragment'     => $status->get_site_suffix(),
    'adminUrl'         => esc_url( admin_url() ),
    'tracksUserData'   => $user_data,
    'wpcomBlogId'      => $blog_id,
    'allowedMimeTypes' => wp_get_mime_types(),
  • /modules/contact-form.php line 33
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    * @since 11.8
     *
     * @param bool $load_contact_form_package Load Jetpack Forms package. Default to false.
     */
    if ( apply_filters( 'jetpack_contact_form_use_package', true ) ) {
        Jetpack_Forms::load_contact_form();
        return true; // Not returning true will cause the module to become deactivated.
    }
     
    require_once __DIR__ . '/contact-form/grunion-contact-form.php';

See this hook used in plugins: