Action hook 'sidebar_admin_page'

in WP Core File wp-admin/widgets-form-blocks.php at line 141

View Source

sidebar_admin_page

Action Hook
Description
Filters the message displayed in the block widget interface when JavaScript is not enabled in the browser.

Hook Information

File Location wp-admin/widgets-form-blocks.php View on GitHub
Hook Type Action
Line Number 141

Hook Parameters

Type Name Description
string $message The message being displayed.
bool $installed Whether the Classic Widget plugin is installed.

Usage Examples

Basic Usage
<?php
// Hook into sidebar_admin_page
add_action('sidebar_admin_page', 'my_custom_function', 10, 2);

function my_custom_function($message, $installed) {
    // Your custom code here
}

Source Code Context

wp-admin/widgets-form-blocks.php:141 - How this hook is used in WordPress core
<?php
 136  	</div>
 137  </div>
 138  
 139  <?php
 140  /** This action is documented in wp-admin/widgets-form.php */
 141  do_action( 'sidebar_admin_page' );
 142  
 143  require_once ABSPATH . 'wp-admin/admin-footer.php';

PHP Documentation

<?php
/**
		 * Filters the message displayed in the block widget interface when JavaScript is
		 * not enabled in the browser.
		 *
		 * @since 6.4.0
		 *
		 * @param string $message The message being displayed.
		 * @param bool   $installed Whether the Classic Widget plugin is installed.
		 */
Quick Info
  • Hook Type: Action
  • Parameters: 2
  • File: wp-admin/widgets-form-blocks.php
Related Hooks

Related hooks will be displayed here in future updates.