Examples

Change Queried data for one Template Object

Change Data for Template object programatical

add_filter( "wr_template_object_modify_data", array( $this, "my_template_object_modify_data" ), 10, 2 );



public function my_template_object_modify_data( $data, TemplateObjectDTO $options) {

   $options = $settings->options;
	 if ( $options->option_exists( "identifier" ) ) {
	  if ( $options->find( "value", "my_identifier" ) !== null ) {
		   $data["value"] = $data["value"]*1.1;
			}
  }
	return $data;
}
0
    0
    Your Cart
    Your cart is emptyReturn to Shop