SHARE
TWEET

Untitled

a guest Jun 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function add_new_post_url( $url, $path, $blog_id ) {
  2.  
  3.     if ( $path == "post-new.php" ) {
  4.         $path = "post-new.php?param=value";
  5.     }
  6.  
  7.     return $path;
  8. }
  9. add_filter( 'admin_url', 'add_new_post_url', 10, 3 );
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top