Last active
October 8, 2019 18:22
-
-
Save paulmiller3000/06da0588fb1411248db1a399b5a29bd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Register all of the hooks related to the admin area functionality | |
* of the plugin. | |
* | |
* @since 1.0.0 | |
* @access private | |
*/ | |
private function define_admin_hooks() { | |
$plugin_admin = new P3k_Galactica_Admin( $this->get_plugin_name(), $this->get_version() ); | |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_styles' ); | |
$this->loader->add_action( 'admin_enqueue_scripts', $plugin_admin, 'enqueue_scripts' ); | |
// Add plugin settings to WooCommerce | |
$this->loader->add_filter( 'woocommerce_get_settings_pages', $plugin_admin, 'p3kg_add_settings' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment