jetpack_forms_alpha
jetpack_forms_alpha
Hook Type: filter
Displaying hooks found in version: jetpack.15.8apply_filters('jetpack_forms_alpha') is found 5 times:
- /jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-contact-form-plugin.php line 1569
// Jetpack submenu entries foreach ( $submenu['jetpack'] as $index => $menu_item ) { /** This filter is documented in class-dashboard.php::init */ $admin_slug = apply_filters( 'jetpack_forms_alpha', true ) ? Dashboard::FORMS_WPBUILD_ADMIN_SLUG : Dashboard::ADMIN_SLUG; if ( $admin_slug === $menu_item[2] ) { // phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited $submenu['jetpack'][ $index ][0] .= $forms_unread_count_tag; } } } - /jetpack_vendor/automattic/jetpack-forms/src/dashboard/class-dashboard.php line 183
* @since 7.18.0 * * @param bool $enabled Whether the wp-build dashboard is enabled. Default true. */ $is_wp_build_enabled = apply_filters( 'jetpack_forms_alpha', true ); if ( $is_wp_build_enabled ) { self::load_wp_build(); self::fix_boot_import_map_ordering(); } - /jetpack_vendor/automattic/jetpack-forms/src/dashboard/class-dashboard.php line 213
return; } /** This filter is documented in class-dashboard.php::init */ $is_wp_build_enabled = apply_filters( 'jetpack_forms_alpha', true ); // Legacy URL requested but wp-build is now active → redirect to wp-build. if ( $page === self::ADMIN_SLUG && $is_wp_build_enabled ) { // The hash is never sent to the server. "inbox" used as default tab so we end up specifically in the responses // route, where the client-side router will handle the redirect to the correct status in its beforeLoad hook. $redirect = self::get_forms_admin_url( 'inbox' ); - /jetpack_vendor/automattic/jetpack-forms/src/dashboard/class-dashboard.php line 382
*/ public function add_admin_submenu() { /** This filter is documented in class-dashboard.php::init */ if ( apply_filters( 'jetpack_forms_alpha', true ) ) { // `jetpack_forms_jetpack_forms_responses_wp_admin_render_page` is the callback generated by WP build script. $callback = function_exists( 'jetpack_forms_jetpack_forms_responses_wp_admin_render_page' ) ? 'jetpack_forms_jetpack_forms_responses_wp_admin_render_page' : array( $this, 'render_dashboard' ); - /jetpack_vendor/automattic/jetpack-forms/src/dashboard/class-dashboard.php line 568
* @return string */ public static function get_forms_admin_url( $tab = null, $post_id = null ) { /** This filter is documented in class-dashboard.php::init */ $is_wp_build_enabled = apply_filters( 'jetpack_forms_alpha', true ); $url = admin_url( 'admin.php' ); $url .= $is_wp_build_enabled ? '?page=' . self::FORMS_WPBUILD_ADMIN_SLUG : '?page=' . self::ADMIN_SLUG;