Make WordPress Core


Ignore:
Timestamp:
10/10/2020 08:38:49 PM (5 years ago)
Author:
johnbillion
Message:

Administration: Allow context and priority to be specified when adding dashboard widgets.

Props davidjlaietta, soulseekah, johnbillion

Fixes #42791

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r49108 r49123  
    10151015 *                                              make sure your menu slug conforms to the limits of sanitize_key()
    10161016 *                                              otherwise the 'screen' menu may not correctly render on your page.
    1017  * @param string                 $context       Optional. The context within the screen where the boxes
     1017 * @param string                 $context       Optional. The context within the screen where the box
    10181018 *                                              should display. Available contexts vary from screen to
    10191019 *                                              screen. Post edit screen contexts include 'normal', 'side',
     
    10211021 *                                              and 'side'. Menus meta boxes (accordion sections) all use
    10221022 *                                              the 'side' context. Global default is 'advanced'.
    1023  * @param string                 $priority      Optional. The priority within the context where the boxes
    1024  *                                              should show ('high', 'low'). Default 'default'.
     1023 * @param string                 $priority      Optional. The priority within the context where the box should show.
     1024 *                                              Accepts 'high', 'core', 'default', or 'low'. Default 'default'.
    10251025 * @param array                  $callback_args Optional. Data that should be set as the $args property
    10261026 *                                              of the box array (which is the second parameter passed
Note: See TracChangeset for help on using the changeset viewer.