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.2.1

apply_filters('jetpack_contact_form_use_package') is found 2 times:

  • /class.jetpack-gutenberg.php line 752
    				/**
    				 * 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
     * @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: