-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
96 lines (86 loc) · 1.54 KB
/
functions.php
File metadata and controls
96 lines (86 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?php
/**
* Functions and definitions
*
* @link https://developer.wordpress.org/themes/basics/theme-functions/
*
* @package FSE
* @since 1.0.0
*/
/**
* Register custom block styles.
*/
function ankur_register_block_styles() {
register_block_style(
'core/button',
array(
'name' => 'underline',
'label' => __( 'Underline', 'ankur' ),
)
);
register_block_style(
'core/embed',
array(
'name' => 'rounded',
'label' => __( 'Rounded', 'ankur' ),
)
);
unregister_block_style( 'core/image', 'rounded' );
register_block_style(
'core/image',
array(
'name' => 'rounded',
'label' => __( 'Rounded', 'ankur' ),
)
);
register_block_style(
'core/image',
array(
'name' => 'pill',
'label' => __( 'Pill', 'ankur' ),
)
);
register_block_style(
'core/gallery',
array(
'name' => 'diamond',
'label' => __( 'Diamond', 'ankur' ),
)
);
register_block_style(
'core/video',
array(
'name' => 'rounded',
'label' => __( 'Rounded', 'ankur' ),
)
);
register_block_style(
'core/quote',
array(
'name' => 'large',
'label' => __( 'Large', 'ankur' ),
)
);
register_block_style(
'core/query-pagination',
array(
'name' => 'buttons',
'label' => __( 'Buttons', 'ankur' ),
)
);
register_block_style(
'core/post-terms',
array(
'name' => 'solid',
'label' => __( 'Solid', 'ankur' ),
)
);
register_block_style(
'core/post-terms',
array(
'name' => 'outline',
'label' => __( 'Outline', 'ankur' ),
)
);
}
add_action( 'init', 'ankur_register_block_styles' );