| | |
| | | <?php |
| | | namespace JVBase\integrations; |
| | | |
| | | use JVBase\managers\queue\Queue; |
| | | use JVBase\meta\Meta; |
| | | use JVBase\registrar\Registrar; |
| | | use WP_Post; |
| | |
| | | } |
| | | public function removeSavePost():void |
| | | { |
| | | remove_action('save_post', [$this, 'handleSavePost'], 20, 3); |
| | | remove_action('save_post', [$this, 'handleSavePost'], 20); |
| | | } |
| | | public function handleSavePost(int $postID, WP_Post $post, bool $update):void |
| | | { |
| | |
| | | } |
| | | public function removeDeletePost():void |
| | | { |
| | | remove_action('before_delete_post', [$this, 'handleSavePost'], 20, 3); |
| | | remove_action('before_delete_post', [$this, 'handleSavePost'], 20); |
| | | } |
| | | public function handleDeletePost(int $postID):void |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | JVB()->queue()->add( |
| | | Queue::getInstance()->add( |
| | | self::$deleteFrom, |
| | | $userID, |
| | | [ |