To access the $post parameter, you need to write: add_action( 'wp_insert_post', array(&$fu, 'cache_activity_post'), 10, 2); where 10 is the (default) priority and 2 is the arg count.