humanmade/meta-lookups

Object cached Key/Value meta lookup framework for WordPress.

Installs: 3 898

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 23

Forks: 1

Open Issues: 0

Type:wordpress-plugin

v1.1 2019-03-14 16:25 UTC

This package is auto-updated.

Last update: 2024-10-15 06:03:36 UTC


README

Object cached Key/Value meta lookup framework for WordPress

Usage

Register a lookup

add_action( 'init', function() {
   HM\Meta_Lookups\register_lookup( 'my_lookup', 'post', 'my_meta_key' );
}, 1 );

Use the lookup

$post_id = HM\Meta_Lookups\do_lookup( 'my meta value', 'my_lookup' );