shortcode['label'] = esc_html__( 'Profile Editor', 'give' ); parent::__construct( 'give_profile_editor' ); } /** * Define the shortcode attribute fields * * @since 2.5.0 * @return array */ public function define_fields() { return array( array( 'type' => 'docs_link', 'text' => esc_html__( 'Learn more about the Donation Profile Editor Shortcode', 'give' ), 'link' => 'http://docs.givewp.com/shortcode-profile-editor', ), ); } } /** * @since 4.3.0 use init action */ add_action( 'init', static function () { new Give_Shortcode_Profile_Editor(); });