• Resolved myCred

    (@designbymerovingi)


    What hook/action do I use if I want to insert “material” when ever someone clicks on “Add New” post / page?

    I am trying to insert a button when ever a user is creating a new post/page. The button must be included as the “Add New Post” or “Add New Page” pages are loaded.

Viewing 1 replies (of 1 total)
  • Thread Starter myCred

    (@designbymerovingi)

    Found the answer.

    global $action;
    
    	if($action == 'edit') {
    	//then do...
    	}
Viewing 1 replies (of 1 total)
  • The topic ‘Creating a Plugin – Do when creating a new post/page’ is closed to new replies.