Make WordPress Core


Ignore:
Timestamp:
08/22/2006 05:38:09 PM (18 years ago)
Author:
ryan
Message:

Add plugin page load hooks. Useful for queueing scripts for a particular plugin page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin.php

    r4049 r4110  
    4343
    4444    if ( $page_hook ) {
     45        do_action('load-' . $page_hook);
    4546        if (! isset($_GET['noheader']))
    4647            require_once(ABSPATH . '/wp-admin/admin-header.php');
     
    5455        if (! file_exists(ABSPATH . "wp-content/plugins/$plugin_page"))
    5556            wp_die(sprintf(__('Cannot load %s.'), htmlentities($plugin_page)));
     57
     58        do_action('load-' . $plugin_page);
    5659
    5760        if (! isset($_GET['noheader']))
Note: See TracChangeset for help on using the changeset viewer.