Changeset 3024308
- Timestamp:
- 01/20/2024 05:30:54 AM (2 years ago)
- Location:
- archived-post-status
- Files:
-
- 2 edited
-
tags/0.3.9/readme.txt (modified) (3 diffs)
-
trunk/readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
archived-post-status/tags/0.3.9/readme.txt
r3024304 r3024308 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4.2 7 Stable tag: 0.3. 87 Stable tag: 0.3.9 8 8 License: GPL-2.0 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 84 84 You can change the post status name, the "Archived" string, by adding the code snippet to your theme's `functions.php` file or as an [MU plugin](http://codex.wordpress.org/Must_Use_Plugins): 85 85 86 ``` 86 <pre lang="php"> 87 87 add_filter( 'aps_archived_label_string', function( $label ) { 88 88 $label = 'Custom Label'; // replace with your custom label 89 89 return $label; 90 90 }); 91 ``` 91 </pre> 92 92 93 93 This will change the name used in the admin and on the post title label (see below). … … 114 114 115 115 You can customize the separator with the following filter: 116 ``` 116 117 <pre lang="php"> 117 118 add_filter( 'aps_title_separator', function( $sep ) { 118 119 $sep = ' ~ '; // replace with your separator 119 120 return $sep; 120 121 }); 121 ``` 122 </pre> 122 123 123 124 = Can I make Archived posts hidden from the "All" list in the WP Admin, similar to Trashed posts? = -
archived-post-status/trunk/readme.txt
r3024307 r3024308 5 5 Requires PHP: 7.4 6 6 Tested up to: 6.4.2 7 Stable tag: 0.3. 87 Stable tag: 0.3.9 8 8 License: GPL-2.0 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.