/** * Magic Members get all download * * @package MagicMembers * @since 2.6.0 * @param string none * @return array $downloads */ function mgm_get_all_download() { // object $d_obj = mgm_get_utility_class('downloads'); // return return $d_obj->get_all(); }
/** * Magic Members get all content protection * * @package MagicMembers * @since 2.6.0 * @param none * @return array protected contents */ function mgm_get_all_content_protection() { // object $ct_obj = mgm_get_utility_class('contents'); // return return $ct_obj->get_all(); }
/** * Magic Members get addon users * * @package MagicMembers * @since 2.6.0 * @param int id * @return array addon */ function mgm_get_addon_options_only($option_ids) { // object $a_obj = mgm_get_utility_class('addons'); // return return $a_obj->get_options_only($option_ids); }
/** * Magic Members get coupon users * * @package MagicMembers * @since 2.6.0 * @param int id * @return array coupon */ function mgm_get_coupon_users($id) { // object $c_obj = mgm_get_utility_class('coupons'); // return return $c_obj->get_users($id); }
/** * Magic Members get transaction option * * @package MagicMembers * @since 2.6.0 * @param array $data * @return int $affected */ function mgm_get_transaction_option($transaction_id, $option_name) { // object $t_obj = mgm_get_utility_class('transactions'); if (!empty($t_obj) && method_exists($t_obj, 'get_option')) { // return return $t_obj->get_option($transaction_id, $option_name); } else { return null; } }