Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Paste kode berikut di theme functions.php:
- function wpb_change_search_url() {
- if ( is_search() && ! empty( $_GET['s'] ) ) {
- wp_redirect( home_url( "/search/" ) . urlencode( get_query_var( 's' ) ) );
- exit();
- }
- }
- add_action( 'template_redirect', 'wpb_change_search_url' );
Add Comment
Please, Sign In to add comment