PHP Filters
lzb/get_meta
Filters output of the function get_lzb_meta
.
Attributes
Name | Type | Description |
---|---|---|
$result | Mixed | meta output value |
$name | String | meta name |
$id | Int | post ID |
$control_data | Array | control data |
Usage
PHP
function my_lzb_get_meta( $result, $name, $id, $control_data ) {
// Change meta value output for meta name "my-meta"
if ( 'my-meta' === $name ) {
$result .= 'test';
}
return $result;
}
add_filter( 'lzb/get_meta', 'my_lzb_get_meta', 10, 4 );