Wp_update_post: Infinite loop even with remove_action solution, OOP

You need to match the $priority you used to hook the action:

remove_action( 'save_post', array( $this, 'save_box' ), 20 /* Same as add_action call */ );

http://codex.wordpress.org/Function_Reference/remove_action

Make sure you take the $post_id argument in your save_box method too:

function save_box( $post_id ) {
    ...
}

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)