This plugin is outdated and might not be supported anymore
Random Post Name

Random Post Name

Details
View on WordPress

Auto-generate a unique random string and set it to post_name.

Customization with hooks

Use of filter hooks is at your own risk.

  • You can change post_type to be applied by an array. Deafult is ‘post’ only.
add_filter( 'random_post_name_post_types', 'hoge' );
function hoge(){
    return ['post', 'page'];
}
  • You can change the number of characters in the post_name. Deafult is 10.
add_filter( 'random_post_name_digits', 'hoge' );
function hoge(){
    return 20;
}
  • You can change the variation of characters. Deafult is ‘0123456789abcdefghijklmnopqrstuvwxyz’. Do not include multibyte chars.
add_filter( 'random_post_name_choices', 'hoge' );
function hoge(){
    return '0123456789abcdefghijkmnpqrstuvwxyz_-';
}

Precautions

Too few characters and too few character variations can cause unexpected problems.

Details

Plugin code:
random-post-name
Plugin version:
1.0
Author:
Outdated:
Yes
WP version:
5.4 or higher
PHP version:
7.1.24 or higher
Test up to WP version:
5.4.16
Total installations:
10
Last updated:
2020-06-12
Rating:
Times rated:
0
post
post_name
pressman
ramdom
slug