← All changes
|
includes/admin/shortcodes/shortcode-give-register.php
+11
-1
2.3.1
→
4.18.0
View file →
| @@ -44,9 +44,19 @@ | ||
| 44 | 44 | 'name' => 'redirect', |
| 45 | 45 | 'minWidth' => 320, |
| 46 | 46 | 'tooltip' => esc_attr__( 'Enter an URL here to redirect to after registering.', 'give' ), |
| 47 | 47 | ), |
| 48 | + array( | |
| 49 | + 'type' => 'docs_link', | |
| 50 | + 'text' => esc_html__( 'Learn more about the Register Shortcode', 'give' ), | |
| 51 | + 'link' => 'http://docs.givewp.com/shortcode-give-register', | |
| 52 | + ), | |
| 48 | 53 | ); |
| 49 | 54 | } |
| 50 | 55 | } |
| 51 | 56 | |
| 52 | -new Give_Shortcode_Register; | |
| 57 | +/** | |
| 58 | + * @since 4.3.0 use init action | |
| 59 | + */ | |
| 60 | +add_action( 'init', static function () { | |
| 61 | + new Give_Shortcode_Register(); | |
| 62 | +}); | |