Skip to content

Instantly share code, notes, and snippets.

@paulmiller3000
Last active October 8, 2019 18:22
Show Gist options
  • Save paulmiller3000/06da0588fb1411248db1a399b5a29bd9 to your computer and use it in GitHub Desktop.
Save paulmiller3000/06da0588fb1411248db1a399b5a29bd9 to your computer and use it in GitHub Desktop.
/**
* 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