PluginProbe
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) / 1.8.13
Charitable – Donation & Fundraising Platform (Donation Forms, Recurring Donations & Fundraising Campaigns) v1.8.13
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 1.7.0.9 All 211 releases
← All changes | includes/endpoints/class-charitable-login-endpoint.php +21 -5 1.6.7 → 1.8.13 View file →
@@ -2,16 +2,18 @@
2 2 /**
3 3 * Login endpoint.
4 4 *
5 5 * @package Charitable/Classes/Charitable_Login_Endpoint
6 - * @author Eric Daams
7 - * @copyright Copyright (c) 2018, Studio 164a
6 + * @author David Bisset
7 + * @copyright Copyright (c) 2023, WP Charitable LLC
8 8 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
9 9 * @since 1.5.0
10 - * @version 1.5.4
10 + * @version 1.6.37
11 11 */
12 12
13 -if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly
13 +if ( ! defined( 'ABSPATH' ) ) {
14 + exit;
15 +}
14 16
15 17 if ( ! class_exists( 'Charitable_Login_Endpoint' ) ) :
16 18
17 19 /**
@@ -20,11 +22,14 @@
20 22 * @since 1.5.0
21 23 */
22 24 class Charitable_Login_Endpoint extends Charitable_Endpoint {
23 25
24 - /* @var string */
26 + /** Endpoint ID. */
25 27 const ID = 'login';
26 28
29 + /** The endpoint's priority in terms of when it should be loaded. */
30 + const PRIORITY = 20;
31 +
27 32 /**
28 33 * Object instantiation.
29 34 *
30 35 * @since 1.5.4
@@ -89,8 +94,19 @@
89 94 return $page == $post->ID;
90 95 }
91 96
92 97 return false;
98 + }
99 +
100 + /**
101 + * Get the nav menu object.
102 + *
103 + * @since 1.6.29
104 + *
105 + * @return object
106 + */
107 + public function nav_menu_object() {
108 + return $this->get_nav_menu_object( __( 'Log In', 'charitable' ) );
93 109 }
94 110 }
95 111
96 112 endif;