Plugin Directory

Changeset 3024308


Ignore:
Timestamp:
01/20/2024 05:30:54 AM (2 years ago)
Author:
joshuadnelson
Message:

Updating readme/assets from GitHub

Location:
archived-post-status
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • archived-post-status/tags/0.3.9/readme.txt

    r3024304 r3024308  
    55Requires PHP:      7.4
    66Tested up to:      6.4.2
    7 Stable tag:        0.3.8
     7Stable tag:        0.3.9
    88License:           GPL-2.0
    99License URI:       https://www.gnu.org/licenses/gpl-2.0.html
     
    8484You 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):
    8585
    86 ```
     86<pre lang="php">
    8787add_filter( 'aps_archived_label_string', function( $label ) {
    8888    $label = 'Custom Label'; // replace with your custom label
    8989    return $label;
    9090});
    91 ```
     91</pre>
    9292
    9393This will change the name used in the admin and on the post title label (see below).
     
    114114
    115115You can customize the separator with the following filter:
    116 ```
     116
     117<pre lang="php">
    117118add_filter( 'aps_title_separator', function( $sep ) {
    118119    $sep = ' ~ '; // replace with your separator
    119120    return $sep;
    120121});
    121 ```
     122</pre>
    122123
    123124= 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  
    55Requires PHP:      7.4
    66Tested up to:      6.4.2
    7 Stable tag:        0.3.8
     7Stable tag:        0.3.9
    88License:           GPL-2.0
    99License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.