You appear to be a bot. Output may be restricted
Description
Given the download data, let's set the variables
Usage
$bool = EDD_Download::setup_download( $download );
Parameters
- $download
- ( WP_Post ) required – The WP_Post object for download.
Returns
bool If the setup was successful or not
Source
File name: easy-digital-downloads/includes/class-edd-download.php
Lines:
1 to 29 of 29
private function setup_download( $download ) { if( ! is_object( $download ) ) { return false; } if( ! $download instanceof WP_Post ) { return false; } if( 'download' !== $download->post_type ) { return false; } foreach ( $download as $key => $value ) { switch ( $key ) { default: $this->$key = $value; break; } } return true; }