Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
Instantiate the class on plugins_loaded hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
mindctrl committed Sep 23, 2016
1 parent 01dd17e commit eafd337
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions alienship-shortcodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@
die ( "What'chu talkin' 'bout, Willis?" );
}


if ( ! class_exists( 'AlienShip_Shortcodes' ) ):

class AlienShip_Shortcodes {

function __construct() {
Expand Down Expand Up @@ -370,5 +367,7 @@ function alienship_row( $atts, $content = null ) {

} //class

$alienship_shortcodes = new AlienShip_Shortcodes();
endif;
function alienship_load_shortcodes() {
$alienship_shortcodes = new AlienShip_Shortcodes();
}
add_action( 'plugins_loaded', 'alienship_load_shortcodes' );

0 comments on commit eafd337

Please sign in to comment.