new_url ]. * Returns the new content (or null if the object is not applicable). * * @param string $object_type 'post' | 'term' | 'nav_menu'. * @param int $object_id Object ID. * @param array $mapping [ old_url => new_url ]. * @return string|null New content, or null if not applicable / unchanged. */ public function replace_urls( $object_type, $object_id, array $mapping ); /** * Persist the (already-replaced) content to the database. * * Uses direct SQL where possible to avoid hook storms (architecture doc §9). * * @param string $object_type 'post' | 'term' | 'nav_menu'. * @param int $object_id Object ID. * @param string $new_content The new content to write. * @return bool True on success. */ public function persist( $object_type, $object_id, $new_content ); }