Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin tommcfarlin/00-acme-plugin.php Secret
Created Mar 11, 2019

Embed
What would you like to do?
[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
You can’t perform that action at this time.