PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.9
GiveWP – Donation Plugin and Fundraising Platform v4.16.9
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
← All changes | includes/admin/shortcodes/shortcode-give-login.php +21 -11 2.3.24.16.9 View file →
@@ -44,19 +44,29 @@
44 44 'name' => 'login-redirect',
45 45 'minWidth' => 320,
46 46 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after login.', 'give' ),
47 47 ),
48 - array(
49 - 'type' => 'container',
50 - 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ),
51 - ),
52 - array(
53 - 'type' => 'textbox',
54 - 'name' => 'logout-redirect',
55 - 'minWidth' => 320,
56 - 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ),
57 - ),
48 + array(
49 + 'type' => 'container',
50 + 'html' => sprintf( '<p class="no-margin">%s</p>', esc_html__( 'Logout Redirect URL (optional):', 'give' ) ),
51 + ),
52 + array(
53 + 'type' => 'textbox',
54 + 'name' => 'logout-redirect',
55 + 'minWidth' => 320,
56 + 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after logout.', 'give' ),
57 + ),
58 + array(
59 + 'type' => 'docs_link',
60 + 'text' => esc_html__( 'Learn more about the Login Shortcode', 'give' ),
61 + 'link' => 'http://docs.givewp.com/shortcode-give-login',
62 + ),
58 63 );
59 64 }
60 65 }
61 66
62 -new Give_Shortcode_Login;
67 +/**
68 + * @since 4.3.0 use init action
69 + */
70 +add_action( 'init', static function () {
71 + new Give_Shortcode_Login();
72 +});