-
-
Save tommcfarlin/777bb0180968134a3c40ebecb241d2ad to your computer and use it in GitHub Desktop.
[WordPress] Suggestions for Organizing Procedural Code
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
<?php | |
/** | |
* Plugin Name: Acme Plugin | |
* Plugin URI: https://acmeplugins.com/acme | |
* Description: This is the plugin description. | |
* Version: 1.0.0 | |
* Author: Acme Plugins Co. | |
* Author URI: https://acmeplugins.com/acme | |
* License: GPL-3.0+ | |
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt | |
* | |
* @since 1.0.0 | |
* @package Acme | |
*/ | |
namespace Acme; | |
defined( 'WPINC' ) || die; | |
// Include the custom autoloader. | |
require_once __DIR__ . '/inc/autoload.php'; | |
// Include action and filters. | |
require_once __DIR__ . '/inc/actions.php'; | |
require_once __DIR__ . '/inc/filters.php'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment