PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.7.0.6
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.7.0.6
1.8.13.1 1.8.13 1.8.12.3 1.8.12.2 1.8.12.1 1.8.12 1.8.11.3 1.8.11.2 1.8.11.1 1.8.11 1.6.6 1.6.60 1.6.7 1.6.8 1.6.9 1.7.0 1.7.0.1 1.7.0.11 1.7.0.12 1.7.0.14 1.7.0.2 1.7.0.3 1.7.0.5 1.7.0.6 1.7.0.7 All 212 releases
charitable / includes / deprecated / charitable-deprecated-functions.php

charitable-deprecated-functions.php in Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) 1.7.0.6, at includes/deprecated/charitable-deprecated-functions.php

183 lines 3.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Charitable Deprecated Functions.
4 *
5 * @package Charitable/Functions/Deprecated
6 * @author David Bisset
7 * @copyright Copyright (c) 2022, WP Charitable LLC
8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 * @since 1.0.1
10 * @version 1.6.29
11 */
12
13 // Exit if accessed directly.
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit;
16 }
17
18 /**
19 * @deprecated 1.0.1
20 */
21 function charitable_user_dashboard() {
22 charitable_get_deprecated()->deprecated_function(
23 __FUNCTION__,
24 '1.0.1',
25 'charitable_get_user_dashboard'
26 );
27
28 return charitable_get_user_dashboard();
29 }
30
31 /**
32 * @deprecated 1.4.0
33 */
34 function charitable_user_can_access_receipt( Charitable_Donation $donation ) {
35 charitable_get_deprecated()->deprecated_function(
36 __FUNCTION__,
37 '1.4.0',
38 'Charitable_Donation::is_from_current_user()'
39 );
40
41 return $donation->is_from_current_user();
42 }
43
44 /**
45 * @deprecated 1.5.0
46 */
47 if ( ! function_exists( 'charitable_template_campaign_content' ) ) :
48
49 function charitable_template_campaign_content( $content ) {
50 charitable_get_deprecated()->deprecated_function(
51 __FUNCTION__,
52 '1.5.0',
53 'Charitable_Endpoints::get_content()'
54 );
55
56 return charitable()->endpoints()->get_content( $content, 'campaign' );
57 }
58
59 endif;
60
61 /**
62 * @deprecated 1.5.0
63 */
64 if ( ! function_exists( 'charitable_template_donation_form_content' ) ) :
65
66 function charitable_template_donation_form_content( $content ) {
67 charitable_get_deprecated()->deprecated_function(
68 __FUNCTION__,
69 '1.5.0',
70 'Charitable_Endpoints::get_content()'
71 );
72
73 return charitable()->endpoints()->get_content( $content, 'campaign_donation' );
74 }
75
76 endif;
77
78 /**
79 * @deprecated 1.5.0
80 */
81 if ( ! function_exists( 'charitable_template_donation_receipt_content' ) ) :
82
83 function charitable_template_donation_receipt_content( $content ) {
84 charitable_get_deprecated()->deprecated_function(
85 __FUNCTION__,
86 '1.5.0',
87 'Charitable_Endpoints::get_content()'
88 );
89
90 return charitable()->endpoints()->get_content( $content, 'donation_receipt' );
91 }
92
93 endif;
94
95 /**
96 * @deprecated 1.5.0
97 */
98 if ( ! function_exists( 'charitable_template_donation_processing_content' ) ) :
99
100 function charitable_template_donation_processing_content( $content ) {
101 charitable_get_deprecated()->deprecated_function(
102 __FUNCTION__,
103 '1.5.0',
104 'Charitable_Endpoints::get_content()'
105 );
106 return charitable()->endpoints()->get_content( $content, 'donation_processing' );
107
108 }
109
110 endif;
111
112 /**
113 * @deprecated 1.5.0
114 */
115 if ( ! function_exists( 'charitable_template_forgot_password_content' ) ) :
116
117 function charitable_template_forgot_password_content( $content ) {
118 charitable_get_deprecated()->deprecated_function(
119 __FUNCTION__,
120 '1.5.0',
121 'Charitable_Endpoints::get_content()'
122 );
123
124 return charitable()->endpoints()->get_content( $content, 'forgot_password' );
125 }
126
127 endif;
128
129 /**
130 * @deprecated 1.5.0
131 */
132 if ( ! function_exists( 'charitable_template_reset_password_content' ) ) :
133
134 function charitable_template_reset_password_content( $content ) {
135 charitable_get_deprecated()->deprecated_function(
136 __FUNCTION__,
137 '1.5.0',
138 'Charitable_Endpoints::get_content()'
139 );
140
141 return charitable()->endpoints()->get_content( $content, 'reset_password' );
142 }
143
144 endif;
145
146 /**
147 * @deprecated 1.5.0
148 */
149 if ( ! function_exists( 'charitable_add_body_classes' ) ) :
150
151 function charitable_add_body_classes( $classes ) {
152 charitable_get_deprecated()->deprecated_function(
153 __FUNCTION__,
154 '1.5.0',
155 'Charitable_Endpoints::add_body_classes()'
156 );
157
158 return charitable()->endpoints()->add_body_classes( $classes );
159 }
160
161 endif;
162
163 /**
164 * Yoast attempts to executes shortcodes from the admin, so we
165 * need to make sure these will work properly.
166 *
167 * @deprecated 2.0.0
168 *
169 * @since 1.5.4
170 * @since 1.6.10 Deprecated.
171 *
172 * @return void
173 */
174 function charitable_wpseo_compat_load_template_files() {
175 charitable_get_deprecated()->deprecated_function(
176 __FUNCTION__,
177 '1.6.10',
178 'charitable()->load_template_files()'
179 );
180
181 charitable()->load_template_files();
182 }
183