diff --git a/peptide-news-plugin/includes/class-peptide-news-loader.php b/peptide-news-plugin/includes/class-peptide-news-loader.php new file mode 100644 index 0000000..b47cd78 --- /dev/null +++ b/peptide-news-plugin/includes/class-peptide-news-loader.php @@ -0,0 +1,33 @@ +actions = array(); + $this->filters = array(); + } + + public function run() { + $admin_actions = array( + 'enqueue_styles', + 'enqueue_scripts', + 'register_settings_page', + ); + + foreach ( $actions as $action ) { + add_action( 'admin_enoqueue_scripts', array( $this-$action ) ); + } +    \ No newline at end of file