cesardpaz
8/30/2019 - 5:50 PM

Constante de theme

#Constantes
define( 'PRUEBA_VERSION',  '1.0.0'  );

$dir_path = ( substr( get_template_directory(),     -1 ) === '/' ) ? get_template_directory()     : get_template_directory()     . '/';
$dir_uri  = ( substr( get_template_directory_uri(), -1 ) === '/' ) ? get_template_directory_uri() : get_template_directory_uri() . '/';

define( 'PRUEBA_DIR_PATH', $dir_path );
define( 'PRUEBA_DIR_URI',  $dir_uri  );