| | |
| | | <?php |
| | | namespace JVBase\managers; |
| | | |
| | | use JVBase\Instance; |
| | | use JVBase\registrar\Registrar; |
| | | use WP_Post; |
| | | use WP_Error; |
| | |
| | | } |
| | | class UserTermsManager |
| | | { |
| | | |
| | | use Instance; |
| | | protected CustomTable $index; |
| | | |
| | | public function __construct() |
| | | private function __construct() |
| | | { |
| | | $this->defineTables(); |
| | | |
| | |
| | | ]; |
| | | } |
| | | |
| | | JVB()->queue()->queueOperation( |
| | | Queue::getInstance()->queueOperation( |
| | | 'rebuild_user_term_index', |
| | | 0, |
| | | [ |
| | |
| | | ]; |
| | | } |
| | | |
| | | JVB()->queue()->queueOperation( |
| | | Queue::getInstance()->queueOperation( |
| | | 'rebuild_user_term_index', |
| | | 0, |
| | | [ |
| | |
| | | 'result' => $results |
| | | ]; |
| | | } catch (Exception $e) { |
| | | JVB()->error()->log( |
| | | Errors::getInstance()->log( |
| | | '[UserTermsManager]:processOperation', |
| | | "Exception during operation processing: " . $e->getMessage(), |
| | | [ |