/** * Initialize the plugin by loading admin scripts & styles and adding a * settings page and menu. * * @since 1.0.0 */ private function __construct() { $plugin = Library::get_instance(); $this->plugin_slug = $plugin->get_plugin_slug(); add_action('init', array($this, 'register')); /* Fire our meta box setup function on the post editor screen. */ add_action('load-post.php', array($this, 'library_meta_boxes_setup')); }