Filter: wr_form_dynamic_data_load_options_by_filter

Allows you to add options to a dynamic data field

 

 

 
Options:
dynamic_data: load_options_by_filter

Example: Add fonts to pdf builder

add_filter( "wr_form_dynamic_data_load_options_by_filter", array( $this, "my_data" ), 10, 2 );

public function add_credit_card_expiry_information( $options, $identifier ) {
	if ( $identifier == 'form_field_identifier' ) {
		$options[] = array( 'value' => 1, 'text' => 'Apple' );
		$options[] = array( 'value' => 2, 'text' => 'Banana' );
	}

	return $options;
}
0
    0
    Your Cart
    Your cart is emptyReturn to Shop