Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.