source_arr['ID'] ?? 0 ); } /** * @throws Action_Exception */ public function do_action() { if ( ! $this->pre_check() ) { return; } $this->inserted_id = wp_update_post( $this->modifier->source_arr, true ); if ( ! is_wp_error( $this->inserted_id ) ) { return; } throw new Action_Exception( 'failed', esc_html( $this->inserted_id->get_error_message() ) ); } }