This can be achieved by using the admin_url filter:
function add_new_post_url( $url, $path, $blog_id ) {
if ( $path == "post-new.php" ) {
$path = "post-new.php?param=value";
}
return $path;
}
add_filter( 'admin_url', 'add_new_post_url', 10, 3 );
Related Posts:
- How to publish a post with empty title and empty content?
- How to add a “publish” link to the quick actions
- how “manage_posts_custom_column” action hook relate to “manage_${post_type}_columns” filter hook?
- the_posts filter been called multiple time
- How can i do something after head like adding a hook for after head but before post
- How to generate numbers indistinguishable for the IDs of the posts
- Prevent posts with certain post_meta to be edited
- the wp_post_update isn’t working all the time
- Is it possible to completely replace a post with an action/filter?
- Modify upload directory to use post category slug in file path on multisite installation
- Change the default blog post post attribute template name from “default template” to something else
- Hook for changing excerpt content when excerpt not set
- Is it possible to add a shortcode below post title?
- Post filtering is returning blank page
- Update post meta within save_post action
- How to generate/create link automatically on every word of post in wordpress
- Automatically set post_parent value
- Updating permalink structure using ‘post_link’ filter results in 404 error for posts
- How include css class based on post ( in loop ) slug?
- How to make Link to go on the first post
- Restrict displaying posts to the poster itself (in Back-end)
- Link to date_query results in WordPress
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Authors’ Links on Homepage Not Going to Author Post Pages
- Short link to read complete post
- Delete all Tag Links from Posts
- Link from Post to Another Post Via Clicking on Words within Original Post
- changing parent_id on post
- Link to older links
- How to link post titles on page A to its posts on page B?
- wp_list_categories() Exclude All Categories Except One
- How to create several Post pages
- Get current taxonomy and display query accordingly
- Actions to use when flushing cache (when posts are added / deleted / modified)
- Trying to exclude custom posts based on date, while sorting by custom field
- can’t modify post title using the_posts filter
- Remove all external links from posts
- Show only posts with titles/permalinks that do not contain certain words
- How do I display main query posts in random order using add_filter
- Edit post & page option does not display on latest wordpress
- Rewrite image links from attachment id to attachment link
- user_has_cap filter allows “edit_others_posts” but not is not allowing updating/publishing
- Using AJAX to filter posts without refreshing page
- Is there a way to know when a page has been updated and do some action only once?
- Adding link options in insert/edit link dialog window
- Filter posts by month (dropdown)
- Restricting displayed posts to posts from only select authors
- How to redirect a unique link based on login status
- Add data attribute of post_id for Internal links
- Run a function when a custom post is update?
- Prevent the automatic URL linking added in last update
- WordPress 5: prevent link from displaying page title instead of URL
- Send email to user when I publish a new post
- Display/Filter post using if else statement
- How to add a custom class attribute into code wrapper? [duplicate]
- Some custom post types did not return an object
- Is update_post_meta used when save_post action hook is invoked?
- Filtering private Posts
- How do I remove all links from all my posts at once?
- how to filter posts by category without page load (ajax) in wordpress?
- Remove status ‘archived’ from the default post and page view
- Count singular post views automatically
- Dropdown Select Post Filter
- long-title posts do not want published
- How to add a block to a category page?
- Add view to admin menu to filter for specific criteria ( If post is child of specific Parent )
- How do i search post by jquery datepicker?
- Add id attribute to h1 element of wordpress post
- show only one category and filter by tag
- Creating a link to the first post in a category
- Prevent WordPress from putting around specific element
- filter buddypress users posts by user ‘xprofile’ custom fields
- Override wp_link_pages pagebreak with filter
- Post Category link is same with Page link
- How do I change the post title’s link on the posts page?
- How can i take all ids from untrash_post action?
- Grab meta data before post is saved
- How to create frontend Post filter using meta query
- Printable Page with all Posts from Tag
- How to test if user is filtering post list in dashboard
- Add Filter to get_next_posts_link
- Hide Admin posts & pages in Dashboard
- Extracting a TLD from the content and assign to custom field
- How to get the postID inside ‘content_save_pre’? Other hook?
- Filter question list on substring of metavalue
- Add review box by function at top or bottom of content
- Hook To Get All Posts Deleted
- Get results from the main wp_query
- Post List Widget with custom posts and editing the Read More Link
- How to add a class to links inside posts text
- How to modify specific parts of a post content in WordPress
- Keep post format class with isotope filter
- Featured Images link to post parent
- My posts section for logged in user
- External link not showing on post but showing on comment
- Custom filter on all post page (admin backend)
- How to use in_category?
- How to change link with broken link?
- Modifying the permalink href for posts with jquery
- the_content() not displaying the full post