Skip to content

Instantly share code, notes, and snippets.

@hellofromtonya

hellofromtonya/building-strings.php Secret

Last active Feb 1, 2017
Embed
What would you like to do?
Building Tests with Dots and Variables
<?php
// Session 1
d( get_template_directory() );
ddd( get_template_directory() . '/lib/init.php' );
// Session 2
d( $parent_theme_directory );
ddd( $parent_theme_directory . '/lib/init.php' );
// Session 3
$suffix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
d( get_stylesheet_directory_uri() );
d( $suffix );
d( '/js/responsive-menus{$suffix}.js' );
d( "/js/responsive-menus{$suffix}.js" );
ddd( get_stylesheet_directory_uri() . "/js/responsive-menus{$suffix}.js" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment