Here’s another example on how you could implement the add_action
:
$type="my_sample_type";
add_action(
'init',
function() use ( $type ) {
MyClass::make( $type );
}
);
Here’s another example on how you could implement the add_action
:
$type="my_sample_type";
add_action(
'init',
function() use ( $type ) {
MyClass::make( $type );
}
);