Changeset 2275715
- Timestamp:
- 04/04/2020 08:23:45 AM (6 years ago)
- Location:
- badad/trunk
- Files:
-
- 2 edited
-
badad.php (modified) (2 diffs)
-
inc/badad-activate.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
badad/trunk/badad.php
r2275714 r2275715 74 74 function register() { 75 75 //add_action( 'admin_enqueue_scripts', array( $this, 'enqueue' ) ); 76 //add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) );76 add_action( 'wp_enqueue_scripts', array( $this, 'enqueue' ) ); 77 77 add_action( 'admin_menu', array( $this, 'add_settings_page' ) ); 78 78 add_filter( "plugin_action_links_$this->plugin", array( $this, 'settings_link' ) ); … … 96 96 97 97 function enqueue() { 98 // Make sure we create any files if settings were in the database 99 include_once (plugin_dir_path( __FILE__ ).'files.php'); 100 98 101 // enqueue all our scripts 99 102 //wp_enqueue_style( 'mypluginstyle', plugins_url( '/art/badad_style.css', __FILE__ ) ); -
badad/trunk/inc/badad-activate.php
r2275714 r2275715 7 7 public static function activate() { 8 8 flush_rewrite_rules(); 9 // Make sure we create any files if settings were in the database10 include_once (plugin_dir_path( __FILE__ ).'files.php');11 9 } 12 10 }
Note: See TracChangeset
for help on using the changeset viewer.