← All changes
|
includes/admin/shortcodes/shortcode-give-login.php
+21
-11
2.3.2
→
4.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 | +}); | |