The raw code to allow Icon Block plugin to scan a theme for icons.
Uses https://wordpress.org/plugins/icon-block/
Place svgs in the mai/icons directory.
Categories will be automatically generated from the directory structure.
Example:
The raw code to allow Icon Block plugin to scan a theme for icons.
Uses https://wordpress.org/plugins/icon-block/
Place svgs in the mai/icons directory.
Categories will be automatically generated from the directory structure.
Example:
| <?php | |
| // Prevent direct file access. | |
| defined( 'ABSPATH' ) || die; | |
| /** | |
| * Add MSN News feed. | |
| * Flush permalinks after adding this feed. | |
| * | |
| * @return void |
| <?php | |
| // Prevent direct file access. | |
| defined( 'ABSPATH' ) || die; | |
| /** | |
| * The main plugin class. | |
| * | |
| * @version 0.2.0 | |
| * |
| <?php | |
| // Exit if accessed directly. | |
| if ( ! defined( 'ABSPATH' ) ) exit; | |
| if ( ! class_exists( 'Mai_WooCommerce_Account_Tab' ) ): | |
| /** | |
| * A class to create new WooCommerce account tabs. | |
| * | |
| * @version 0.1.0 |
| <?php | |
| // Prevent direct file access. | |
| defined( 'ABSPATH' ) || die; | |
| /** | |
| * WP-CLI to delete all content. | |
| * | |
| wp post delete $(wp post list --post_type=post --format=ids) --force | |
| wp post delete $(wp post list --post_type=page --format=ids) --force |
| <?php | |
| // Prevent direct file access. | |
| defined( 'ABSPATH' ) || die; | |
| if ( ! class_exists( 'Mai_User_Role_Base' ) ): | |
| /** | |
| * The User Role Base class. | |
| * | |
| * @version 0.2.0 |
| <?php | |
| /** | |
| * Mai WooCommerce Permalink Silos. | |
| * | |
| * @version 1.2.0 | |
| * | |
| * @package BizBudding\MaiWooCommercePermalinkSilos | |
| * @link https://bizbudding.com | |
| * @author BizBudding | |
| * @copyright Copyright © 2023 BizBudding |
| <?php | |
| add_action( 'enqueue_block_editor_assets', 'mai_enqueue_block_editor_assets' ); | |
| /** | |
| * Enqueues block assets for the editor, | |
| * since front-end assets are loaded on-demand. | |
| * | |
| * @since TBD | |
| * | |
| * @return void |