protected function generateSubmitButton()
	{
		$args = $this->args['submit'];

		is_array( $args ) ?: $args = ['text' => $args ];

		$args = shortcode_atts([
			'text' => __( 'Save Changes', 'site-reviews' ),
			'type' => 'primary',
			'name' => 'submit',
			'wrap' => true,
			'other_attributes' => null,
		], $args );

		if( is_admin() ) {
			ob_start();
			submit_button( $args['text'], $args['type'], $args['name'], $args['wrap'], $args['other_attributes'] );
			return ob_get_clean();
		}
	}
protected function generateSubmitButton()
	{
		$args = $this->args['submit'];

		is_array( $args ) ?: $args = ['text' => $args ];

		$args = shortcode_atts([
			'text' => __( 'Save Changes', 'site-reviews' ),
			'type' => 'primary',
			'name' => 'submit',
			'wrap' => true,
			'other_attributes' => null,
		], $args );

		if( is_admin() ) {
			ob_start();
			submit_button( $args['text'], $args['type'], $args['name'], $args['wrap'], $args['other_attributes'] );
			return ob_get_clean();
		}
	}
protected function generateSubmitButton ( ) { $ args = $ this -> args [ 'submit' ] ; is_array ( $ args ) ? : $ args = [ 'text' => $ args ] ; $ args = shortcode_atts ( [ 'text' => __ ( 'Save Changes' , 'site-reviews' ) , 'type' => 'primary' , 'name' => 'submit' , 'wrap' => true , 'other_attributes' => null , ] , $ args ) ; if ( is_admin ( ) ) { ob_start ( ) ; submit_button ( $ args [ 'text' ] , $ args [ 'type' ] , $ args [ 'name' ] , $ args [ 'wrap' ] , $ args [ 'other_attributes' ] ) ; return ob_get_clean ( ) ; } }
Generate the form submit button

@return null|string
Generate the form submit button