Changeset 2866039
- Timestamp:
- 02/15/2023 11:43:14 PM (3 years ago)
- Location:
- sort-settings-menu
- Files:
-
- 2 edited
-
tags/1.0.0/readme.txt (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sort-settings-menu/tags/1.0.0/readme.txt
r2866037 r2866039 40 40 = Can Sort Settings Menu alphabetically sort other admin menus? = 41 41 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.42 Sort Settings Menu only sorts the "Settings" section and does not have any options to sort other parts of the administration menu. 43 43 44 ``` 44 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. 45 46 ` 45 47 // Organize the "Settings" and "Tools" menu in alphabetical order. 46 48 add_filter( 'functions_file_sort_settings_menu', function( $menus ) { 47 49 return array( 'options-general.php', 'tools.php' ); 48 50 } ); 49 ` ``51 ` 50 52 51 53 == Changelog == … … 55 57 56 58 - Initial release. 57 -
sort-settings-menu/trunk/readme.txt
r2866037 r2866039 40 40 = Can Sort Settings Menu alphabetically sort other admin menus? = 41 41 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.42 Sort Settings Menu only sorts the "Settings" section and does not have any options to sort other parts of the administration menu. 43 43 44 ``` 44 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. 45 46 ` 45 47 // Organize the "Settings" and "Tools" menu in alphabetical order. 46 48 add_filter( 'functions_file_sort_settings_menu', function( $menus ) { 47 49 return array( 'options-general.php', 'tools.php' ); 48 50 } ); 49 ` ``51 ` 50 52 51 53 == Changelog == … … 55 57 56 58 - Initial release. 57
Note: See TracChangeset
for help on using the changeset viewer.