entity_type ); if ( TMDO_Mode_Manager::MODE_AEAV_ONLY === $current ) { $this->log( $job, '↪ Already aeav_only' ); return array( 'status' => 'ok' ); } $r = TMDO_Mode_Manager::set( $this->entity_type, TMDO_Mode_Manager::MODE_AEAV_ONLY ); if ( is_wp_error( $r ) ) { throw new \RuntimeException( 'Promote to aeav_only failed: ' . $r->get_error_message() ); } $this->log( $job, 'Mode: shadow_read → aeav_only (cutover complete)' ); return array( 'status' => 'ok' ); } }