Files
chrnx-dev-wp/functions.php
T

12 lines
450 B
PHP

<?php
define( 'CHRNX_VERSION', '0.1.0' );
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
foreach ( array( 'setup', 'assets', 'taxonomies', 'editor', 'podcast-meta', 'settings', 'queries', 'blocks', 'theme-preference' ) as $module ) {
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
$path = get_theme_file_path( "inc/{$module}.php" );
if ( file_exists( $path ) ) {
require_once $path;
}
}