WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

To execute a function during publishing post publish_post action hook is used. But what is quick press post publish hook?

share|improve this question
Are you talking about the "Quick Edit" on the admin page post list-- wp-admin/edit.php? – s_ha_dum Aug 13 '13 at 23:29
No brother. I am talking about quick press by which authors/contributors can post from dashboard index.php page. – Md Shahinur Rahaman Aug 13 '13 at 23:44
Quickpress is just a widget that uses post.php. – Wyck Aug 14 '13 at 0:15

As Wyck said, it's just a form that uses post.php. To check if QuickPress is the one making the call use:

add_action( 'publish_post', 'check_for_quickpress_wpse_109961' ); 

function check_for_quickpress_wpse_109961( $post_id ) 
    if( 'post-quickpress-publish' == $_POST['action'] )
        // do_something();
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.