PUM_Fields::checkbox_templ_callback( $args )


Description Description


Source Source

File: includes/class-pum-fields.php

	public function checkbox_templ_callback( $args ) {
		$this->field_before( $args );

		$this->field_label( $args ); ?>

		<# var checked = data.<?php echo esc_attr( $args['templ_name'] ); ?> !== undefined && data.<?php echo esc_attr( $args['templ_name'] ); ?> ? true : false; #>

		<input type="checkbox" id="<?php echo esc_attr( $args['id'] ); ?>" name="<?php echo esc_attr( $args['name'] ); ?>" value="<?php echo esc_attr( $args['checkbox_val'] ); ?>" {{pumChecked(checked, true, true)}} /><?php

		$this->field_description( $args );

		$this->field_after();
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.