Skip to content

Commit 123a980

Browse files
committed
Change permalinks base added
1 parent 4c5b164 commit 123a980

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
add_action('init', 'my_change_permalink_base');
4+
function my_change_permalink_base() {
5+
global $wp_rewrite;
6+
7+
$wp_rewrite->pagination_base = 'page';
8+
$wp_rewrite->search_base = 'search';
9+
$wp_rewrite->author_base = 'author';
10+
}

0 commit comments

Comments
 (0)