07/11/2013 at 11:03 am
#264677
Keymaster
@ Patrick
Looks good, at a glance. Couple questions…
Is the test direct in this folder?
../wp-content/plugins/connections/templates/
If yes, that’ll be alright just for testing, but you’ll lose the template during a plugin upgrade since WP will delete the Connections folder.
So my suggestion would be to move the test folder to the plugins folder.
Add the plugin header text to the top of the test.php file so WP will recognize it as a valid plugin.
Then add the following to the end of the test.php file:
add_action( 'plugins_loaded', array( 'cnTest', 'init' ), 11 );
Now, when you activate your template under the Plugins admin page, it should show up on the Connections :: Templates admin page.
