Plugin Directory

Changeset 2866039


Ignore:
Timestamp:
02/15/2023 11:43:14 PM (3 years ago)
Author:
functionsfile
Message:

Update readme.txt

Location:
sort-settings-menu
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sort-settings-menu/tags/1.0.0/readme.txt

    r2866037 r2866039  
    4040= Can Sort Settings Menu alphabetically sort other admin menus? =
    4141
    42 Sort Settings Menu only sorts the "Settings" section and does not have any options to sort other parts of the administration menu. A `functions_file_sort_settings_menu` [filter](https://developer.wordpress.org/plugins/hooks/filters/) is available that allows additional menus to be sorted via code. For example, if you add the following code to your theme's `functions.php` file or to a plugin, both the "Settings" and "Tools" sections will be sorted alphabetically.
     42Sort Settings Menu only sorts the "Settings" section and does not have any options to sort other parts of the administration menu.
    4343
    44 ```
     44A `functions_file_sort_settings_menu` [filter](https://developer.wordpress.org/plugins/hooks/filters/) is available that allows additional menus to be sorted via code. For example, if you add the following code to your theme's `functions.php` file or to a plugin, both the "Settings" and "Tools" sections will be sorted alphabetically.
     45
     46`
    4547// Organize the "Settings" and "Tools" menu in alphabetical order.
    4648add_filter( 'functions_file_sort_settings_menu', function( $menus ) {
    4749    return array( 'options-general.php', 'tools.php' );
    4850} );
    49 ```
     51`
    5052
    5153== Changelog ==
     
    5557
    5658- Initial release.
    57 
  • sort-settings-menu/trunk/readme.txt

    r2866037 r2866039  
    4040= Can Sort Settings Menu alphabetically sort other admin menus? =
    4141
    42 Sort Settings Menu only sorts the "Settings" section and does not have any options to sort other parts of the administration menu. A `functions_file_sort_settings_menu` [filter](https://developer.wordpress.org/plugins/hooks/filters/) is available that allows additional menus to be sorted via code. For example, if you add the following code to your theme's `functions.php` file or to a plugin, both the "Settings" and "Tools" sections will be sorted alphabetically.
     42Sort Settings Menu only sorts the "Settings" section and does not have any options to sort other parts of the administration menu.
    4343
    44 ```
     44A `functions_file_sort_settings_menu` [filter](https://developer.wordpress.org/plugins/hooks/filters/) is available that allows additional menus to be sorted via code. For example, if you add the following code to your theme's `functions.php` file or to a plugin, both the "Settings" and "Tools" sections will be sorted alphabetically.
     45
     46`
    4547// Organize the "Settings" and "Tools" menu in alphabetical order.
    4648add_filter( 'functions_file_sort_settings_menu', function( $menus ) {
    4749    return array( 'options-general.php', 'tools.php' );
    4850} );
    49 ```
     51`
    5052
    5153== Changelog ==
     
    5557
    5658- Initial release.
    57 
Note: See TracChangeset for help on using the changeset viewer.