• 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_Payment::add_meta() – Add an item to the payment meta

You appear to be a bot. Output may be restricted

Description

Add an item to the payment meta

Usage

$bool|false|int = EDD_Payment::add_meta( $meta_key, $meta_value, $unique );

Parameters

$meta_key
( string ) optional –
$meta_value
( string ) optional –
$unique
( bool ) optional –

Returns

bool|false|int

Source

File name: easy-digital-downloads/includes/payments/class-edd-payment.php
Lines:

1 to 7 of 7
  public function add_meta( $meta_key = '', $meta_value = '', $unique = false ) {
    if ( empty( $meta_key ) ) {
      return false;
    }

    return add_post_meta( $this->ID, $meta_key, $meta_value, $unique );
  }
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 6th June 2020

Primary Sidebar

Information

Function name: EDD_Payment::add_meta
Class ref: EDD_Payment
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/payments/class-edd-payment.php
File ref: includes/payments/class-edd-payment.php
Deprecated?: No
API Letters: A,E,M,P

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