rest_delete_{$this->taxonomy}

rest_delete_{$this->taxonomy}

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

do_action('rest_delete_{$this->taxonomy}') is found 2 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php line 398
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
            )
        );
     
        /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */
        do_action( "rest_delete_{$this->taxonomy}", $term, $response, $request );
     
        return $response;
    }
     
    /**
     * Returns the value of a menu's auto_add setting.
  • /wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php line 796
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
         * @param WP_Term          $term     The deleted term.
         * @param WP_REST_Response $response The response data.
         * @param WP_REST_Request  $request  The request sent to the API.
         */
        do_action( "rest_delete_{$this->taxonomy}", $term, $response, $request );
     
        return $response;
    }
     
    /**
     * Prepares a single term for create or update.