-
Notifications
You must be signed in to change notification settings - Fork 4
/
demo.php
55 lines (54 loc) · 1.4 KB
/
demo.php
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
<?php
add_filter( 'rwmb_meta_boxes', function ( $meta_boxes ) {
$meta_boxes[] = [
'title' => 'Test Yoast SEO',
'fields' => [
[
'id' => 'text',
'name' => 'Text',
'type' => 'textarea',
'add_to_wpseo_analysis' => true,
],
[
'id' => 'text_clone',
'name' => 'Text Clone',
'type' => 'textarea',
'clone' => true,
'add_to_wpseo_analysis' => true,
],
[
'id' => 'editor2',
'name' => 'Editor',
'type' => 'wysiwyg',
'add_to_wpseo_analysis' => true,
],
[
'id' => 'editor_clone',
'name' => 'Editor Clone',
'type' => 'wysiwyg',
'clone' => true,
'add_to_wpseo_analysis' => true,
],
[
'id' => 'group',
'name' => 'Group',
'type' => 'group',
'fields' => [
[
'id' => 'text2',
'name' => 'Text',
'type' => 'textarea',
'add_to_wpseo_analysis' => true,
],
[
'id' => 'text_clone2',
'name' => 'Text Clone',
'type' => 'textarea',
'add_to_wpseo_analysis' => true,
],
],
],
],
];
return $meta_boxes;
} );