PluginProbe
WP Directory Kit / 1.5.9
WP Directory Kit v1.5.9
1.5.9 1.5.7 1.5.6 1.5.5 1.5.4 1.5.3 trunk 1.1.0 1.1.6 1.1.8 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.8 All 37 releases
← All changes | blocks/blocks-init.php +5 -3 1.3.8 → 1.5.9 View file →
@@ -4,15 +4,16 @@
4 4 }
5 5
6 6 // Blocks
7 7 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'blocks/inc/block-product-field/block-product-field.php';
8 +require_once plugin_dir_path( dirname( __FILE__ ) ) . 'blocks/inc/block-share/block-share.php';
8 9
9 -function my_custom_block_category($categories, $post) {
10 +function wdk_block_category($categories, $post) {
10 11 return array_merge(
11 12 array(
12 13 array(
13 14 'slug' => 'wdk-blocks',
14 - 'title' => __('WDK Blocks', 'text-domain'),
15 + 'title' => __('WDK Blocks', 'wpdirectorykit'),
15 16 'icon' => 'dashicons-heart',
16 17 ),
17 18 ),
18 19 $categories
@@ -17,9 +18,10 @@
17 18 ),
18 19 $categories
19 20 );
20 21 }
21 -add_filter('block_categories_all', 'my_custom_block_category', 10, 2);
22 +
23 +add_filter('block_categories_all', 'wdk_block_category', 10, 2);
22 24
23 25 function wdk_block_view($view_file = '', $element = '', $print = false)
24 26 {
25 27 if(empty($view_file)) return false;