Created
June 9, 2016 19:04
-
-
Save txemaleon/3e941594ad975e094c7527ca586bbca2 to your computer and use it in GitHub Desktop.
A Basic Class Template for Wordpress Plugins
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 | |
class className { | |
function __construct() {} | |
} | |
function className() { | |
new className; | |
} | |
add_action( 'init', 'className', 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment