WordPress.org

Ready to get started?Download WordPress

Ideas

Filter to modify default new post properties

  1. praveenbm5
    Member

    I was hoping to find a way to modify the default new post properties like comment_status, ping_status etc.

    It would be great to find a filter in the 'get_default_post_to_edit' function in wp-admin/includes/post.php at the last before returning the post object.

    do_filter("default_new_post", $post);

    Its a one line modification that adds more flexibility to wordpress.

    Posted: 4 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    4 Votes
  • Status

    Sorry, not right now