Description
Returns the value (label) of the specified field (By given metaKey).
This is a very versatile function. This function will return the level value . It has only one parameter . You need to use field metakey as function parameter .
Parameters
1 2 3 4 5 |
<?php $label = get_label($metaKey); ?> |
- $metaKey: the Meta key of the field to be retrieved. eg “book_author” (required)
Usage
1 2 3 4 5 6 7 8 9 10 11 |
<?php $label = get_label($metaKey); if($label){ echo $label; } else{ // Do something } ?> |
Leave a Reply
You must be logged in to post a comment.