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 |
---|---|
807 | * Returning a non-null value will effectively short-circuit the function. |
808 | * |
809 | * @since 5.0.0 |
810 | * |
811 | * @param null|bool $check Whether to allow updating metadata for the given type. |
812 | * @param int $meta_id Meta ID. |
813 | * @param mixed $meta_value Meta value. Must be serializable if non-scalar. |
814 | * @param string|false $meta_key Meta key, if provided. |
815 | */ |
816 | $check = apply_filters( "update_{$meta_type}_metadata_by_mid", null, $meta_id, $meta_value, $meta_key ); |
817 | if ( null !== $check ) { |
818 | return (bool) $check; |
819 | } |
820 |
|
821 | // Fetch the meta and go on if it's found. |
822 | $meta = get_metadata_by_mid( $meta_type, $meta_id ); |
823 | if ( $meta ) { |
824 | $original_key = $meta->meta_key; |
825 | $object_id = $meta->{$column}; |