How to determine whether we are in add New page/post/CPT or in edit page/post/CPT in wordpress admin?
here is a function that i have: /** * is_edit_page * function to check if the current page is a post edit page * * @author Ohad Raz <[email protected]> * * @param string $new_edit what page to check for accepts new – new post page ,edit – edit post page, null for either * @return … Read more