HEX
Server: Apache
System: Linux p3plzcpnl506847.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: slfopp7cb1df (5698090)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/slfopp7cb1df/www/klasiboi.com/wp-content/themes/shopmighty/inc/core/block-patterns.php
<?php

/**
 * shopmighty: Block Patterns
 *
 * @since shopmighty 1.0.0
 */

/**
 * Registers pattern categories for shopmighty
 *
 * @since shopmighty 1.0.0
 *
 * @return void
 */
function shopmighty_register_pattern_category()
{
	$block_pattern_categories = array(
		'shopmighty' => array('label' => __('Shopmighty Sections', 'shopmighty')),
		'shopmighty-homes' => array('label' => __('Homepage Templates', 'shopmighty')),
	);

	$block_pattern_categories = apply_filters('shopmighty_block_pattern_categories', $block_pattern_categories);

	foreach ($block_pattern_categories as $name => $properties) {
		if (!WP_Block_Pattern_Categories_Registry::get_instance()->is_registered($name)) {
			register_block_pattern_category($name, $properties); // phpcs:ignore WPThemeReview.PluginTerritory.ForbiddenFunctions.editor_blocks_register_block_pattern_category
		}
	}
}
add_action('init', 'shopmighty_register_pattern_category', 9);