HEX
Server: Apache
System: Linux hz.vslconceptsdomains.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: dkfounda (3233)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dkfounda/public_html/wp-content/themes/blockskit-business-solutions/functions.php
<?php

/**
 * Blockskit Business Solutions functions and definitions
 *
 * @link https://developer.wordpress.org/themes/basics/theme-functions/
 *
 * @package Blockskit Business Solutions
 */

define( 'BLOCKSKIT_BUSINESS_SOLUTIONS_URL', trailingslashit( get_stylesheet_directory_uri() ) );

if ( ! function_exists( 'blockskit_business_solutions_setup' ) ) {

	/**
	 * Sets up theme defaults and registers support for various WordPress features.
	 *
	 * Note that this function is hooked into the after_setup_theme hook, which
	 * runs before the init hook. The init hook is too late for some features, such
	 * as indicating support for post thumbnails.
	 *
	 * @since 1.0.0
	 *
	 * @return void
	 */
	function blockskit_business_solutions_setup() {

		// Make theme available for translation.
		load_theme_textdomain( 'blockskit-business-solutions', get_stylesheet_directory() . '/languages' );
	}
}
add_action( 'after_setup_theme', 'blockskit_business_solutions_setup' );

/**
 * Enqueue scripts and styles
 */
function blockskit_business_solutions_scripts() {
	$version = wp_get_theme( 'blockskit-business-solutions' )->get( 'Version' );
	// enqueue parent style
	wp_enqueue_style('blockskit-business-solutions-parent-style', get_template_directory_uri() . '/style.css');
}
add_action( 'wp_enqueue_scripts', 'blockskit_business_solutions_scripts' );

/**
 * Label update filter.
 */
function blockskit_business_solutions_block_pattern_categories_filter( $block_pattern_categories ){
	$block_pattern_categories['theme']['label'] = __( 'Theme Patterns', 'blockskit-business-solutions' );
	return $block_pattern_categories;
}
add_filter( 'blockskit_base_block_pattern_categories', 'blockskit_business_solutions_block_pattern_categories_filter' );