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 |
---|---|
695 | * will effectively short-circuit the function. |
696 | * |
697 | * @since 5.0.0 |
698 | * |
699 | * @param null|bool $check Whether to allow updating metadata for the given type. |
700 | * @param int $meta_id Meta ID. |
701 | * @param mixed $meta_value Meta value. Must be serializable if non-scalar. |
702 | * @param string|bool $meta_key Meta key, if provided. |
703 | */ |
704 | $check = apply_filters( "update_{$meta_type}_metadata_by_mid", null, $meta_id, $meta_value, $meta_key ); |
705 | if ( null !== $check ) { |
706 | return (bool) $check; |
707 | } |
708 |
|
709 | // Fetch the meta and go on if it's found. |
710 | $meta = get_metadata_by_mid( $meta_type, $meta_id ); |
711 | if ( $meta ) { |
712 | $original_key = $meta->meta_key; |
713 | $object_id = $meta->{$column}; |