/** * Initialize the plugin by loading admin scripts & styles and adding a * settings page and menu. * * @since 1.0.0 */ protected function __construct() { parent::__construct(); //register_activation_hook( self::get( 'file' ), array( $this, 'activation' ) ); //register_deactivation_hook( self::get( 'file' ), array( $this, 'deactivation' ) ); // Add an action link pointing to the options page. add_filter('plugin_action_links_' . plugin_basename(self::get('file')), array($this, 'plugin_action_links')); // Add an action link pointing to the network options page. // add_filter( 'network_admin_plugin_action_links_' . self::get( 'file' ), array( $this, 'network_admin_plugin_action_links' ) ); // Activate plugin when new blog is added // add_action( 'wpmu_new_blog', array( $this, 'wpmu_new_blog' ) ); Settings::instance(); Editor::instance(); Boxes::instance(); }
/** * Initialize the plugin by setting localization and loading public scripts * and styles. * * @since 1.0.0 */ protected function __construct() { parent::__construct(); add_filter('the_content', array($this, 'the_content'), 9); add_filter('body_class', array($this, 'body_class')); }
/** * Initialize the plugin by loading admin scripts & styles and adding a * settings page and menu. * * @since 1.0.0 */ protected function __construct() { parent::__construct(); add_action('admin_init', array($this, 'admin_init')); }