PluginProbe ʕ •ᴥ•ʔ
Automation Web Platform – Notifications and OTP for WooCommerce, Advanced Country Code / 4.8.6
Automation Web Platform – Notifications and OTP for WooCommerce, Advanced Country Code v4.8.6
4.8.6 4.8.5 4.8.4 trunk 4.8.3
automation-web-platform / integrations / block-patterns.php
automation-web-platform / integrations Last commit date
bricks 2 weeks ago elementor 2 weeks ago block-patterns.php 2 weeks ago elementor-integration.php 1 month ago index.php 1 month ago woocommerce-myaccount.php 2 weeks ago
block-patterns.php
58 lines
1 <?php
2 /**
3 * Block Patterns integration.
4 * Register WAWP block patterns for Gutenberg.
5 *
6 * @package automation-web-platform
7 */
8
9 if ( ! defined( 'ABSPATH' ) ) {
10 exit;
11 }
12
13 /**
14 * Register WAWP block patterns for Gutenberg.
15 */
16 function wawp_register_block_patterns() {
17 if ( function_exists( 'register_block_pattern_category' ) ) {
18 register_block_pattern_category( 'automation-web-platform', array( 'label' => esc_html__( 'Wawp', 'automation-web-platform' ) ) );
19 }
20
21 if ( function_exists( 'register_block_pattern' ) ) {
22 register_block_pattern(
23 'wawp/wawp-fast-login-form',
24 array(
25 'title' => esc_html__( 'Wawp Login/Signup Form', 'automation-web-platform' ),
26 'description' => esc_html__( 'A combined login and signup form for Wawp.', 'automation-web-platform' ),
27 'content' => '<!-- wp:shortcode -->[wawp-fast-login]<!-- /wp:shortcode -->',
28 'categories' => array( 'automation-web-platform' ),
29 'keywords' => array( 'wawp', 'login', 'signup' ),
30 )
31 );
32
33 register_block_pattern(
34 'wawp/wawp-login-form',
35 array(
36 'title' => esc_html__( 'Wawp Login Form', 'automation-web-platform' ),
37 'description' => esc_html__( 'A dedicated login form for Wawp.', 'automation-web-platform' ),
38 'content' => '<!-- wp:shortcode -->[wawp_otp_login]<!-- /wp:shortcode -->',
39 'categories' => array( 'automation-web-platform' ),
40 'keywords' => array( 'wawp', 'login', 'form' ),
41 )
42 );
43
44 register_block_pattern(
45 'wawp/wawp-signup-form',
46 array(
47 'title' => esc_html__( 'Wawp Signup Form', 'automation-web-platform' ),
48 'description' => esc_html__( 'A dedicated signup form for Wawp.', 'automation-web-platform' ),
49 'content' => '<!-- wp:shortcode -->[wawp_signup_form]<!-- /wp:shortcode -->',
50 'categories' => array( 'automation-web-platform' ),
51 'keywords' => array( 'wawp', 'signup', 'form' ),
52 )
53 );
54 }
55 }
56
57 add_action( 'init', 'wawp_register_block_patterns' );
58