Inline documentation for the welcome_panel hook.

props natejacobs.
see #25229.


git-svn-id: https://develop.svn.wordpress.org/trunk@25250 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-09-05 16:06:16 +00:00
parent 7a5e1a598f
commit 2f0d581810
1 changed files with 11 additions and 1 deletions

View File

@ -120,7 +120,17 @@ $today = current_time('mysql', 1);
<div id="welcome-panel" class="<?php echo esc_attr( $classes ); ?>">
<?php wp_nonce_field( 'welcome-panel-nonce', 'welcomepanelnonce', false ); ?>
<a class="welcome-panel-close" href="<?php echo esc_url( admin_url( '?welcome=0' ) ); ?>"><?php _e( 'Dismiss' ); ?></a>
<?php do_action( 'welcome_panel' ); ?>
<?php
/**
* Add content to the welcome panel on the admin dashboard
*
* To remove the default welcome panel, use remove_action():
* <code>remove_action( 'welcome_panel', 'wp_welcome_panel' );</code>
*
* @since 3.5.0
*/
do_action( 'welcome_panel' );
?>
</div>
<?php endif; ?>