Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/taxonomy.php | do_action | 2151 | /** * Fires after a term in a specific taxonomy is deleted. * * The dynamic portion of the hook name, `$taxonomy`, refers to the specific * taxonomy the term belonged to. * * Possible hook names include: * * - `delete_category` * - `delete_post_tag` * * @since 2.3.0 * @since 4.5.0 Introduced the `$object_ids` argument. * * @param int $term Term ID. * @param int $tt_id Term taxonomy ID. * @param WP_Term $deleted_term Copy of the already-deleted term. * @param array $object_ids List of term object IDs. */ |
wp-includes/meta.php | apply_filters | 425 | /** * Short-circuits deleting metadata of a specific type. * * The dynamic portion of the hook name, `$meta_type`, refers to the meta object type * (post, comment, term, user, or any other type with an associated meta table). * Returning a non-null value will effectively short-circuit the function. * * Possible hook names include: * * - `delete_post_metadata` * - `delete_comment_metadata` * - `delete_term_metadata` * - `delete_user_metadata` * * @since 3.1.0 * * @param null|bool $delete Whether to allow metadata deletion of the given type. * @param int $object_id ID of the object metadata is for. * @param string $meta_key Metadata key. * @param mixed $meta_value Metadata value. Must be serializable if non-scalar. * @param bool $delete_all Whether to delete the matching metadata entries * for all objects, ignoring the specified $object_id. * Default false. */ |
wp-includes/meta.php | do_action | 476 | /** * Fires immediately before deleting metadata of a specific type. * * The dynamic portion of the hook name, `$meta_type`, refers to the meta object type * (post, comment, term, user, or any other type with an associated meta table). * * Possible hook names include: * * - `delete_post_meta` * - `delete_comment_meta` * - `delete_term_meta` * - `delete_user_meta` * * @since 3.1.0 * * @param string[] $meta_ids An array of metadata entry IDs to delete. * @param int $object_id ID of the object metadata is for. * @param string $meta_key Metadata key. * @param mixed $_meta_value Metadata value. */ |
wp-includes/meta.php | apply_filters | 1020 | /** * Short-circuits deleting metadata of a specific type by meta ID. * * The dynamic portion of the hook name, `$meta_type`, refers to the meta object type * (post, comment, term, user, or any other type with an associated meta table). * Returning a non-null value will effectively short-circuit the function. * * Possible hook names include: * * - `delete_post_metadata_by_mid` * - `delete_comment_metadata_by_mid` * - `delete_term_metadata_by_mid` * - `delete_user_metadata_by_mid` * * @since 5.0.0 * * @param null|bool $delete Whether to allow metadata deletion of the given type. * @param int $meta_id Meta ID. */ |
wp-includes/meta.php | do_action | 1031 | /** * Short-circuits deleting metadata of a specific type by meta ID. * * The dynamic portion of the hook name, `$meta_type`, refers to the meta object type * (post, comment, term, user, or any other type with an associated meta table). * Returning a non-null value will effectively short-circuit the function. * * Possible hook names include: * * - `delete_post_metadata_by_mid` * - `delete_comment_metadata_by_mid` * - `delete_term_metadata_by_mid` * - `delete_user_metadata_by_mid` * * @since 5.0.0 * * @param null|bool $delete Whether to allow metadata deletion of the given type. * @param int $meta_id Meta ID. */ |
wp-includes/meta.php | do_action | 1052 | /** * Fires immediately before deleting post or comment metadata of a specific type. * * The dynamic portion of the hook name, `$meta_type`, refers to the meta * object type (post or comment). * * Possible hook names include: * * - `delete_postmeta` * - `delete_commentmeta` * - `delete_termmeta` * - `delete_usermeta` * * @since 3.4.0 * * @param int $meta_id ID of the metadata entry to delete. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int | $tt_id | Term taxonomy ID. |
null|bool | $delete | Whether to allow metadata deletion of the given type. |
int | $object_id | ID of the object metadata is for. |
string | $meta_key | Metadata key. |
mixed | $meta_value | Metadata value. Must be serializable if non-scalar. |
bool | $delete_all | Whether to delete the matching metadata entries |
null|bool | $delete | Whether to allow metadata deletion of the given type. |
int | $object_id | ID of the object metadata is for. |
string | $meta_key | Metadata key. |
mixed | $meta_value | Metadata value. Must be serializable if non-scalar. |
bool | $delete_all | Whether to delete the matching metadata entries |
null|bool | $delete | Whether to allow metadata deletion of the given type. |
int | $object_id | ID of the object metadata is for. |
string | $meta_key | Metadata key. |
mixed | $meta_value | Metadata value. Must be serializable if non-scalar. |
bool | $delete_all | Whether to delete the matching metadata entries |
null|bool | $delete | Whether to allow metadata deletion of the given type. |
int | $object_id | ID of the object metadata is for. |
string | $meta_key | Metadata key. |
mixed | $meta_value | Metadata value. Must be serializable if non-scalar. |
bool | $delete_all | Whether to delete the matching metadata entries |
null|bool | $delete | Whether to allow metadata deletion of the given type. |
int | $object_id | ID of the object metadata is for. |
string | $meta_key | Metadata key. |
mixed | $meta_value | Metadata value. Must be serializable if non-scalar. |
bool | $delete_all | Whether to delete the matching metadata entries |