• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / EDD_DB_Customer_Meta::delete_meta() – Remove metadata matching criteria from a customer.

You appear to be a bot. Output may be restricted

Description

Remove metadata matching criteria from a customer.

For internal use only. Use EDD_Customer->delete_meta() for public usage. You can match based on the key, or key and value. Removing based on key and value, will keep from removing duplicate metadata with the same key. It also allows removing all metadata matching key, if needed.

Usage

EDD_DB_Customer_Meta::delete_meta( $customer_id, $meta_key, $meta_value );

Parameters

$customer_id
( int ) optional – Customer ID.
$meta_key
( string ) optional – Metadata name.
$meta_value
( mixed ) optional – Optional. Metadata value.

Returns

void bool False for failure. True for success.

Source

File name: easy-digital-downloads/includes/class-edd-db-customer-meta.php
Lines:

1 to 3 of 3
  public function delete_meta( $customer_id = 0, $meta_key = '', $meta_value = '' ) {
    return delete_metadata( 'customer', $customer_id, $meta_key, $meta_value );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 12th September 2021

Primary Sidebar

Information

Function name: EDD_DB_Customer_Meta::delete_meta
Class ref: EDD_DB_Customer_Meta
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/class-edd-db-customer-meta.php
File ref: includes/class-edd-db-customer-meta.php
Deprecated?: No
API Letters: C,D,E,M

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites