| @@ -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; |