NateWr / business-profile

WordPress plugin to display your business's contact details with seo-friendly Schema.org markup.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

adding other defaults

funkykowal2000 opened this issue · comments

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;
		}