You appear to be a bot. Output may be restricted
Description
Retrieve the purchase button behavior
Usage
$string = EDD_Download::get_button_behavior();
Parameters
Returns
string
Source
File name: easy-digital-downloads/includes/class-edd-download.php
Lines:
1 to 17 of 17
public function get_button_behavior() { if( ! isset( $this->button_behavior ) ) { $this->button_behavior = get_post_meta( $this->ID, '_edd_button_behavior', true ); if( empty( $this->button_behavior ) || ! edd_shop_supports_buy_now() ) { $this->button_behavior = 'add_to_cart'; } } return apply_filters( 'edd_get_download_button_behavior', $this->button_behavior, $this->ID ); }