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.1

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

  • /wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php line 398
    			)
    		);
    
    		/** 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
    		 * @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.