Created
August 3, 2015 20:58
-
-
Save rveitch/e68ee5a4a242f794f625 to your computer and use it in GitHub Desktop.
Load an included file in WordPress
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Load an included file | |
| */ | |
| function load_this_file() { | |
| require_once( plugin_dir_path( __FILE__ ) . 'includes/this-file.php' ); | |
| } | |
| add_action( 'init', 'load_this_file' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment