Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Created March 11, 2019 21:38
Show Gist options
  • Save tommcfarlin/777bb0180968134a3c40ebecb241d2ad to your computer and use it in GitHub Desktop.
Save tommcfarlin/777bb0180968134a3c40ebecb241d2ad to your computer and use it in GitHub Desktop.
[WordPress] Suggestions for Organizing Procedural Code
<?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