Recent

crp_get_meta function

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

TypeNameDescription
int$post_idPost ID.
string$keyMeta key suffix (without crp prefix).

Returns

mixed — Meta value or empty string.