PluginProbe
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant / 2.3.0
Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant v2.3.0
2.3.2 2.3.1 2.3.0 2.2.8 2.2.7 trunk 1.10.0 1.10.1 1.10.2 1.10.3 1.10.4 1.10.5 1.11.0 1.11.1 1.11.2 1.6 1.7 1.8 1.8.1 1.8.2 1.8.3 1.9.0 1.9.1 1.9.10 1.9.11 All 60 releases
merchant / inc / abilities / class-merchant-abilities-category.php

class-merchant-abilities-category.php in Product Labels, Quick View, Buy Now, Pre-Orders, Frequently Bought Together & More for WooCommerce – Merchant 2.3.0, at inc/abilities/class-merchant-abilities-category.php

48 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Merchant Abilities Category.
4 *
5 * Registers the "merchant" ability category with WordPress.
6 *
7 * @package Merchant
8 * @since 2.3.0
9 */
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit;
13 }
14
15 /**
16 * Merchant_Abilities_Category
17 *
18 * Registers the `merchant` ability category during the
19 * `wp_abilities_api_categories_init` hook so that all
20 * Merchant abilities are grouped under a single category
21 * in the WordPress Abilities API.
22 *
23 * @since 2.3.0
24 */
25 class Merchant_Abilities_Category {
26
27 /**
28 * Hook into the WP Abilities API category registration.
29 *
30 * @return void
31 */
32 public static function register() {
33 add_action( 'wp_abilities_api_categories_init', array( static::class, 'register_category' ) );
34 }
35
36 /**
37 * Register the "merchant" ability category with WordPress.
38 *
39 * @return void
40 */
41 public static function register_category() {
42 wp_register_ability_category( 'merchant', array(
43 'label' => __( 'Merchant — WooCommerce Toolkit', 'merchant' ),
44 'description' => __( 'Manage Merchant modules, campaigns, settings, and analytics.', 'merchant' ),
45 ) );
46 }
47 }
48