Skip to content

Instantly share code, notes, and snippets.

@tommcfarlin
Last active July 25, 2017 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tommcfarlin/f9de10bd98d0ba3dd22c914b01fad140 to your computer and use it in GitHub Desktop.
Save tommcfarlin/f9de10bd98d0ba3dd22c914b01fad140 to your computer and use it in GitHub Desktop.
[WordPress] Basic Coding Standards via PSR-1
<?php
namespace TAN;
use TAN\Admin;
include_once( 'admin/class-toggle-admin-notices-node.php' );
include_once( 'admin/interfaces/interface-asset.php' );
include_once( 'admin/class-javascript-assets.php' );
add_action( 'plugins_loaded', __NAMESPACE__ . '\\tan_start' );
/**
* Initializes the JavaScript loader and the Administration Bar Node for
* rendering the option to toggle admin notices.
*/
function tan_start() {
// Code removed for brevity.
}
<?php
namespace TAN;
use TAN\Admin;
include_once 'inc/autoload.php';
add_action( 'plugins_loaded', __NAMESPACE__ . '\\tan_start' );
/**
* Initializes the JavaScript loader and the Administration Bar Node for
* rendering the option to toggle admin notices.
*/
function tan_start() {
// Code removed for brevity.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment