Recent

crp_get_metafunction

crp_get_meta()

Backward compatibility helper for reading CRP meta keys.

Prioritizes new individual crp* meta keys, falls back to crp_post_meta array. Caches old meta to avoid repeated queries.

Since: 4.2.0
Source: includes/functions.php line 75

Signature

function crp_get_meta( $post_id, $key ): mixed;

Parameters

Type Name Description
int $post_id Post ID.
string $key Meta key suffix (without crp prefix).

Returns

mixed — Meta value or empty string.