WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/23/2013 11:03:21 PM (8 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/plugins.php.

Props a.hoereth and kpdesign for the initial patches.
Fixes #25836.

File:
1 edited

Legend:

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

    r26263 r26345  
    148148            }
    149149            plugin_sandbox_scrape( $plugin );
    150             do_action('activate_' . $plugin);
     150            /** This action is documented in wp-admin/includes/plugins.php */
     151            do_action( "activate_{$plugin}" );
    151152            exit;
    152153            break;
     
    417418</h2>
    418419
    419 <?php do_action( 'pre_current_active_plugins', $plugins['all'] ) ?>
     420<?php
     421/**
     422 * Fires before the plugins list table is rendered.
     423 *
     424 * This hook also fires before the plugins list table is rendered in the Network Admin.
     425 *
     426 * Please note: The 'active' portion of the hook name does not refer to whether the current
     427 * view is for active plugins, but rather all plugins actively-installed.
     428 *
     429 * @since 3.0.0
     430 *
     431 * @param array $plugins_all An array containing all installed plugins.
     432 */
     433do_action( 'pre_current_active_plugins', $plugins['all'] );
     434?>
    420435
    421436<?php $wp_list_table->views(); ?>
Note: See TracChangeset for help on using the changeset viewer.