Examples
Set Data for template programatically
Idea: If you use data which not exits in the database like data from files or you need an algorithm to calculate data by code
add_filter( "wr_template_object_set_data", array( $this, "my_template_object_set_data" ), 10, 3 );
public function my_template_object_set_data( $data, $options = array(), $selector = array() ) {
if ( !empty($options["identifier"] && $options["identifier"] === "my_template_object_identifier" ) ) {
return array("placeholder" => 1)
}
return $data;
}