Forked from cobaltapps/child-themer-include-custom-function-files.php
Created
March 7, 2019 02:18
-
-
Save DalavanCloud/b33d087aadad31d595fa88bd85b90f10 to your computer and use it in GitHub Desktop.
Child Themer: Conditionally include both a front-end and back-end custom functions file for better custom coding compartmentalization.
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
// Include the front-end.php file only to non-admin pages. | |
if ( ! is_admin() ) | |
include_once( get_stylesheet_directory() . '/custom/front-end.php' ); | |
// Include the front-end.php file only to admin pages. | |
if ( is_admin() ) | |
include_once( get_stylesheet_directory() . '/custom/back-end.php' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment