welcome_panel
Action HookDescription
Fires when adding content to the welcome panel on the admin dashboard. To remove the default welcome panel, use remove_action(): remove_action( 'welcome_panel', 'wp_welcome_panel' );Hook Information
File Location |
wp-admin/index.php
View on GitHub
|
Hook Type | Action |
Line Number | 198 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into welcome_panel
add_action('welcome_panel', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/index.php:198
- How this hook is used in WordPress core
<?php
193 *
194 * remove_action( 'welcome_panel', 'wp_welcome_panel' );
195 *
196 * @since 3.5.0
197 */
198 do_action( 'welcome_panel' );
199 ?>
200 </div>
201 <?php endif; ?>
202
203 <div id="dashboard-widgets-wrap">
PHP Documentation
<?php
/**
* Fires when adding content to the welcome panel on the admin dashboard.
*
* To remove the default welcome panel, use remove_action():
*
* remove_action( 'welcome_panel', 'wp_welcome_panel' );
*
* @since 3.5.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/index.php
Related Hooks
Related hooks will be displayed here in future updates.