/** * Constructor Function * * Initialize the plugin by loading admin scripts & styles and adding a * settings page and menu. * * @since 1.2 * @version 1.3.7 * */ function __construct() { /** * Call $plugin_slug from public plugin class. * */ $plugin = Easy_Google_Fonts::get_instance(); $this->plugin_slug = $plugin->get_plugin_slug(); $this->register_actions(); $this->register_filters(); }
/** * Constructor Function * * Initialize the plugin by loading admin scripts & styles and adding a * settings page and menu. * * @uses Easy_Google_Fonts::get_instance() defined in \includes\class-easy-google-fonts.php * * @since 1.2 * @version 1.3.9 * */ function __construct() { /** * Call $plugin_slug from public plugin class. * */ $plugin = Easy_Google_Fonts::get_instance(); $this->plugin_slug = $plugin->get_plugin_slug(); // Setup class variables $this->set_urls(); $this->set_font_controls(); $this->set_screen_state(); // Register actions and filters $this->register_actions(); $this->register_filters(); }