mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Inline documentation for the welcome_panel hook.
props natejacobs. see #25229. Built from https://develop.svn.wordpress.org/trunk@25250 git-svn-id: http://core.svn.wordpress.org/trunk@25218 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e5646d21e6
commit
4bb33bf19c
@ -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; ?>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user