WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )apply_filters( "hook_name", "what_to_filter" ).Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
| Line | Code |
|---|---|
| 921 | * The dynamic portion of the hook, `$meta_type`, refers to the meta object type |
| 922 | * (post, comment, term, user, or any other type with an associated meta table). |
| 923 | * Returning a non-null value will effectively short-circuit the function. |
| 924 | * |
| 925 | * @since 5.0.0 |
| 926 | * |
| 927 | * @param null|bool $delete Whether to allow metadata deletion of the given type. |
| 928 | * @param int $meta_id Meta ID. |
| 929 | */ |
| 930 | $check = apply_filters( "delete_{$meta_type}_metadata_by_mid", null, $meta_id ); |
| 931 | if ( null !== $check ) { |
| 932 | return (bool) $check; |
| 933 | } |
| 934 | |
| 935 | // Fetch the meta and go on if it's found. |
| 936 | $meta = get_metadata_by_mid( $meta_type, $meta_id ); |
| 937 | if ( $meta ) { |
| 938 | $object_id = (int) $meta->{$column}; |
| 939 | |