← All changes
|
includes/admin/shortcodes/shortcode-give-register.php
+12
-2
2.3.0
→
4.17.0
View file →
| @@ -3,9 +3,9 @@ | ||
| 3 | 3 | * The [give_register] Shortcode Generator class |
| 4 | 4 | * |
| 5 | 5 | * @package Give |
| 6 | 6 | * @subpackage Admin |
| 7 | - * @copyright Copyright (c) 2016, WordImpress | |
| 7 | + * @copyright Copyright (c) 2016, GiveWP | |
| 8 | 8 | * @license https://opensource.org/licenses/gpl-license GNU Public License |
| 9 | 9 | * @since 1.3.0 |
| 10 | 10 | */ |
| 11 | 11 | |
| @@ -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 | +}); | |