mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Administration: Allow context and priority to be specified when adding dashboard widgets.
Props davidjlaietta, soulseekah, johnbillion Fixes #42791 git-svn-id: https://develop.svn.wordpress.org/trunk@49123 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1014,14 +1014,14 @@ function wp_import_upload_form( $action ) {
|
||||
* add_submenu_page() to create a new screen (and hence screen_id),
|
||||
* make sure your menu slug conforms to the limits of sanitize_key()
|
||||
* otherwise the 'screen' menu may not correctly render on your page.
|
||||
* @param string $context Optional. The context within the screen where the boxes
|
||||
* @param string $context Optional. The context within the screen where the box
|
||||
* should display. Available contexts vary from screen to
|
||||
* screen. Post edit screen contexts include 'normal', 'side',
|
||||
* and 'advanced'. Comments screen contexts include 'normal'
|
||||
* and 'side'. Menus meta boxes (accordion sections) all use
|
||||
* the 'side' context. Global default is 'advanced'.
|
||||
* @param string $priority Optional. The priority within the context where the boxes
|
||||
* should show ('high', 'low'). Default 'default'.
|
||||
* @param string $priority Optional. The priority within the context where the box should show.
|
||||
* Accepts 'high', 'core', 'default', or 'low'. Default 'default'.
|
||||
* @param array $callback_args Optional. Data that should be set as the $args property
|
||||
* of the box array (which is the second parameter passed
|
||||
* to your callback). Default null.
|
||||
|
||||
Reference in New Issue
Block a user