function test_delete_meta_with_value_should_delete_only_meta_with_value() { gp_update_meta('1', 'foo', 'bar', 'thing'); gp_delete_meta('1', 'foo', 'bar', 'thing'); $this->assertEquals(null, gp_get_meta('thing', '1', 'foo')); gp_update_meta('1', 'foo', 'foo', 'thing'); gp_delete_meta('1', 'foo', 'bar', 'thing'); $this->assertNotEquals(null, gp_get_meta('thing', '1', 'foo')); }
function gp_delete_option($option, $value = '') { return gp_delete_meta(0, $option, $value, 'option', true); }
function delete_meta($key) { return gp_delete_meta($this->id, $key, '', 'user'); }