Move widgets and importers to modules
This commit is contained in:
@@ -117,7 +117,6 @@ final class SportsPress {
|
||||
|
||||
// Hooks
|
||||
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array( $this, 'action_links' ) );
|
||||
add_action( 'widgets_init', array( $this, 'include_widgets' ) );
|
||||
add_action( 'init', array( $this, 'init' ), 0 );
|
||||
add_action( 'init', array( 'SP_Shortcodes', 'init' ) );
|
||||
add_action( 'after_setup_theme', array( $this, 'setup_environment' ) );
|
||||
@@ -263,15 +262,6 @@ final class SportsPress {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Include core widgets.
|
||||
*/
|
||||
public function include_widgets() {
|
||||
include_once( 'includes/widgets/class-sp-widget-staff.php' );
|
||||
|
||||
do_action( 'sportspress_widgets' );
|
||||
}
|
||||
|
||||
/**
|
||||
* Init SportsPress when WordPress Initialises.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user