Custom WooCommerce Settings Page

Custom WooCommerce Settings Page

Getting your Trinity Audio player ready...
1.1 Add Menu Item for the Settings Page
add_action('admin_menu', 'register_woocommerce_bulk_discount_settings_page');

function register_woocommerce_bulk_discount_settings_page() {
    add_submenu_page(
        'woocommerce', // Parent slug (WooCommerce)
        'Bulk Discount Settings', // Page title
        'Bulk Discounts', // Menu title
        'manage_woocommerce', // Capability
        'wc_bulk_discount_settings', // Menu slug
        'woocommerce_bulk_discount_settings_page' // Callback function
    );
}

Similar Posts