| 1 |
<?php |
| 2 |
/** |
| 3 |
* Charitable Deprecated Functions. |
| 4 |
* |
| 5 |
* @package Charitable/Functions/Deprecated |
| 6 |
* @version 1.0.1 |
| 7 |
* @author Eric Daams |
| 8 |
* @copyright Copyright (c) 2019, Studio 164a |
| 9 |
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License |
| 10 |
*/ |
| 11 |
|
| 12 |
// Exit if accessed directly. |
| 13 |
if ( ! defined( 'ABSPATH' ) ) { exit; } |
| 14 |
|
| 15 |
/** |
| 16 |
* @deprecated 1.0.1 |
| 17 |
*/ |
| 18 |
|
| 19 |
function charitable_user_dashboard() { |
| 20 |
charitable_get_deprecated()->deprecated_function( |
| 21 |
__FUNCTION__, |
| 22 |
'1.0.1', |
| 23 |
'charitable_get_user_dashboard' |
| 24 |
); |
| 25 |
|
| 26 |
return charitable_get_user_dashboard(); |
| 27 |
} |
| 28 |
|
| 29 |
/** |
| 30 |
* @deprecated 1.4.0 |
| 31 |
*/ |
| 32 |
function charitable_user_can_access_receipt( Charitable_Donation $donation ) { |
| 33 |
charitable_get_deprecated()->deprecated_function( |
| 34 |
__FUNCTION__, |
| 35 |
'1.4.0', |
| 36 |
'Charitable_Donation::is_from_current_user()' |
| 37 |
); |
| 38 |
|
| 39 |
return $donation->is_from_current_user(); |
| 40 |
} |
| 41 |
|
| 42 |
/** |
| 43 |
* @deprecated 1.5.0 |
| 44 |
*/ |
| 45 |
if ( ! function_exists( 'charitable_template_campaign_content' ) ) : |
| 46 |
|
| 47 |
function charitable_template_campaign_content( $content ) { |
| 48 |
charitable_get_deprecated()->deprecated_function( |
| 49 |
__FUNCTION__, |
| 50 |
'1.5.0', |
| 51 |
'Charitable_Endpoints::get_content()' |
| 52 |
); |
| 53 |
|
| 54 |
return charitable()->endpoints()->get_content( $content, 'campaign' ); |
| 55 |
} |
| 56 |
|
| 57 |
endif; |
| 58 |
|
| 59 |
/** |
| 60 |
* @deprecated 1.5.0 |
| 61 |
*/ |
| 62 |
if ( ! function_exists( 'charitable_template_donation_form_content' ) ) : |
| 63 |
|
| 64 |
function charitable_template_donation_form_content( $content ) { |
| 65 |
charitable_get_deprecated()->deprecated_function( |
| 66 |
__FUNCTION__, |
| 67 |
'1.5.0', |
| 68 |
'Charitable_Endpoints::get_content()' |
| 69 |
); |
| 70 |
|
| 71 |
return charitable()->endpoints()->get_content( $content, 'campaign_donation' ); |
| 72 |
} |
| 73 |
|
| 74 |
endif; |
| 75 |
|
| 76 |
/** |
| 77 |
* @deprecated 1.5.0 |
| 78 |
*/ |
| 79 |
if ( ! function_exists( 'charitable_template_donation_receipt_content' ) ) : |
| 80 |
|
| 81 |
function charitable_template_donation_receipt_content( $content ) { |
| 82 |
charitable_get_deprecated()->deprecated_function( |
| 83 |
__FUNCTION__, |
| 84 |
'1.5.0', |
| 85 |
'Charitable_Endpoints::get_content()' |
| 86 |
); |
| 87 |
|
| 88 |
return charitable()->endpoints()->get_content( $content, 'donation_receipt' ); |
| 89 |
} |
| 90 |
|
| 91 |
endif; |
| 92 |
|
| 93 |
/** |
| 94 |
* @deprecated 1.5.0 |
| 95 |
*/ |
| 96 |
if ( ! function_exists( 'charitable_template_donation_processing_content' ) ) : |
| 97 |
|
| 98 |
function charitable_template_donation_processing_content( $content ) { |
| 99 |
charitable_get_deprecated()->deprecated_function( |
| 100 |
__FUNCTION__, |
| 101 |
'1.5.0', |
| 102 |
'Charitable_Endpoints::get_content()' |
| 103 |
); |
| 104 |
return charitable()->endpoints()->get_content( $content, 'donation_processing' ); |
| 105 |
|
| 106 |
} |
| 107 |
|
| 108 |
endif; |
| 109 |
|
| 110 |
/** |
| 111 |
* @deprecated 1.5.0 |
| 112 |
*/ |
| 113 |
if ( ! function_exists( 'charitable_template_forgot_password_content' ) ) : |
| 114 |
|
| 115 |
function charitable_template_forgot_password_content( $content ) { |
| 116 |
charitable_get_deprecated()->deprecated_function( |
| 117 |
__FUNCTION__, |
| 118 |
'1.5.0', |
| 119 |
'Charitable_Endpoints::get_content()' |
| 120 |
); |
| 121 |
|
| 122 |
return charitable()->endpoints()->get_content( $content, 'forgot_password' ); |
| 123 |
} |
| 124 |
|
| 125 |
endif; |
| 126 |
|
| 127 |
/** |
| 128 |
* @deprecated 1.5.0 |
| 129 |
*/ |
| 130 |
if ( ! function_exists( 'charitable_template_reset_password_content' ) ) : |
| 131 |
|
| 132 |
function charitable_template_reset_password_content( $content ) { |
| 133 |
charitable_get_deprecated()->deprecated_function( |
| 134 |
__FUNCTION__, |
| 135 |
'1.5.0', |
| 136 |
'Charitable_Endpoints::get_content()' |
| 137 |
); |
| 138 |
|
| 139 |
return charitable()->endpoints()->get_content( $content, 'reset_password' ); |
| 140 |
} |
| 141 |
|
| 142 |
endif; |
| 143 |
|
| 144 |
/** |
| 145 |
* @deprecated 1.5.0 |
| 146 |
*/ |
| 147 |
if ( ! function_exists( 'charitable_add_body_classes' ) ) : |
| 148 |
|
| 149 |
function charitable_add_body_classes( $classes ) { |
| 150 |
charitable_get_deprecated()->deprecated_function( |
| 151 |
__FUNCTION__, |
| 152 |
'1.5.0', |
| 153 |
'Charitable_Endpoints::add_body_classes()' |
| 154 |
); |
| 155 |
|
| 156 |
return charitable()->endpoints()->add_body_classes( $classes ); |
| 157 |
} |
| 158 |
|
| 159 |
endif; |
| 160 |
|