Auto .php Files in Directory

    // Include Files
    public function include_files() {
        // Autoload PHP files in /includes Directory
        foreach(glob(plugin_dir_path(__FILE__) . "/includes/*.php") as $file){
            require_once $file;
        }
    }
[instagram-feed feed=1]
© 2024 BenaDigital Limited | All Rights Reserved
magnifiercrosschevron-down