adding other defaults
funkykowal2000 opened this issue · comments
funkykowal2000 commented
How to realizing default values for other fields like phone etc. (when creating multisite blog)? I can set 'name' by example by bpfwp_defaults and It works fine. And how to do for other fields?
Simple filter:
add_filter( 'bpfwp_defaults', 'set_my_defaults' );
function set_my_defaults($defaults) {
$defaults = array(
'schema_type' => 'Organization',
'name' => 'new value' ,
);
return $defaults;
}