Function RevisionEngineDatabase->recategorise_old_revisions

Definitions

sources/revisions_engine_database.php

  • Move some revisions to a different category.Typically this is when we are moving posts and we want the revisions to show up for the new topic they are in.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$resource_type string No No required parameter N/A N/A Resource type
$resource_id string No No required parameter N/A N/A Resource ID
$new_category_id string No No required parameter N/A N/A Category ID

Preview

Code (PHP)

/**
 * Move some revisions to a different category.Typically this is when we are moving posts and we want the revisions to show up for the new topic they are in.
 *
 * @param  string $resource_type Resource type
 * @param  string $resource_id Resource ID
 * @param  string $new_category_id Category ID
 */

public function recategorise_old_revisions(string $resource_type, string $resource_id, string $new_category_id)