If you want to use custom PHP classes in the blade engine, this hook is ideal for that.
function atkp_modify_bladedata_callback($bladedata) {
$bladedata['eigenes'] = 'hallo';
//Die Variable "$eigenes" ist nun in der BladeEngine verfügbar.
return $bladedata;
}
add_action('atkp_modify_bladedata', 'atkp_modify_bladedata_callback');
Parameter | Description |
bladedata | The array which holds all classes for the engine. |
Return value | Return value is the array. |