Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




add_rewrite_rule [ WordPress Function ]

add_rewrite_rule ( $regex, $redirect, $after = 'bottom' )
Parameters:
  • (string) $regex Regular Expression to match request against.
  • (string) $redirect Page to redirect to.
  • (string) $after Optional, default is 'bottom'. Where to add rule, can also be 'top'.
See:
  • WP_Rewrite::add_rule()
Defined at:



Add a straight rewrite rule.

Source


<?php
function add_rewrite_rule($regex$redirect$after 'bottom') {
    global 
$wp_rewrite;
    
$wp_rewrite->add_rule($regex$redirect$after);
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics