Last active
October 31, 2020 16:55
-
-
Save amans199/890808893ee1bb5ac47c10a8bee5ae3a to your computer and use it in GitHub Desktop.
Wordpress_Hints:: including all files inside a directory
This file contains 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
define('DEFAULT_PATH', plugin_dir_path(__FILE__)); | |
foreach (glob(DEFAULT_PATH . "templates/*.php") as $file) { | |
include_once $file; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment