Closed emiluzelac closed 8 years ago
I'd actually recommend the following for theme usage:
require_once( trailingslashit( get_template_directory() ) . 'use-child-theme.php' );
And, this for plugin usage:
require_once( trailingslashit( plugin_dir_path( __FILE__ ) ) . 'use-child-theme.php' );
trailingslashit
is a personal preference ;) But yeah, that works too!
Thanks guys, README.md updated
This isn't a recommended usage:
include( dirname( __FILE__ ) . '/use-child-theme.php' );
Option A:
include get_template_directory() . '/use-child-theme.php';
Option B:
require get_template_directory() . '/use-child-theme.php';