Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add backslash to path wordpress

$bS_incl_path = get_template_directory() . '/inc';
 
/**
 * Define theme include path
 * 
 * Normalize the include path to be safe on windows hosts
 * @return string Normalized path
 * require min WordPress version 3.9
 * @since boot_Strap 1.0.1
 * 
 */
 
 if(function_exists('wp_normalize_path')){
      
    $bS_incl_path = wp_normalize_path($bS_incl_path);
 }
 
define('THM_INC', $bS_incl_path);
 
require_once (THM_INC. '/wp_bootstrap_navwalker.php');
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #add #backslash #path #wordpress
ADD COMMENT
Topic
Name
9+6 =