Skip to content

Instantly share code, notes, and snippets.

View Pistil-Studio's full-sized avatar

Frumillon Pierre Pistil-Studio

View GitHub Profile
<?php
if (!function_exists('get_post_id_by_meta_key_and_value')) {
/**
* Get post id from meta key and value
* @param string $key
* @param mixed $value
* @return int|bool
* @author David M&aring;rtensson <david.martensson@gmail.com>
*/
function get_post_id_by_meta_key_and_value($key, $value) {