[resolved] Creating a Plugin - Do when creating a new post/page (2 posts)

  1. Gabriel
    Posted 6 years ago #

    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.

  2. Gabriel
    Posted 6 years ago #

    Found the answer.

    global $action;
    	if($action == 'edit') {
    	//then do...

Topic Closed

This topic has been closed to new replies.

About this Topic