Make WordPress Core

Changeset 25250


Ignore:
Timestamp:
09/05/2013 04:06:16 PM (11 years ago)
Author:
nacin
Message:

Inline documentation for the welcome_panel hook.

props natejacobs.
see #25229.

File:
1 edited

Legend:

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

    r23170 r25250  
    121121        <?php wp_nonce_field( 'welcome-panel-nonce', 'welcomepanelnonce', false ); ?>
    122122        <a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>"><?php _e( 'Dismiss' ); ?></a>
    123         <?php do_action( 'welcome_panel' ); ?>
     123        <?php
     124        /**
     125         * Add content to the welcome panel on the admin dashboard
     126         *
     127         * To remove the default welcome panel, use remove_action():
     128         * <code>remove_action( 'welcome_panel', 'wp_welcome_panel' );</code>
     129         *
     130         * @since 3.5.0
     131         */
     132        do_action( 'welcome_panel' );
     133        ?>
    124134    </div>
    125135<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.