LocalBusiness JSON-LD schema output on the front page and static pages. PRO feature.
Settings Structure
php
$settings = [
'enabled' => true,
'business_name' => 'My Restaurant',
'business_type' => 'Restaurant',
'phone' => '+1-555-123-4567',
'email' => '[email protected]',
'street' => '123 Main Street',
'city' => 'New York',
'state' => 'NY',
'zip' => '10001',
'country' => 'US',
'lat' => '40.7128',
'lng' => '-74.0060',
'opening_hours' => "Mo-Fr 09:00-17:00nSa 10:00-14:00",
'price_range' => '$$',
'social_urls' => "https://facebook.com/mybiznhttps://twitter.com/mybiz",
];
update_option( 'seoforge_local_seo', $settings );Available Business Types
php
$types = SEOFORGE_Local_Seo::get_business_types();
// Returns 30+ types: 'Organization', 'ProfessionalService', 'LocalBusiness',
// 'Restaurant', 'Dentist', 'MedicalClinic', 'BeautySalon', 'AutoRepair', ...Schema Output
Output on wp_head (priority 6) for the front page:
json
{
"@context": "https://schema.org",
"@type": "Restaurant",
"name": "My Restaurant",
"url": "https://example.com/",
"telephone": "+1-555-123-4567",
"address": {
"@type": "PostalAddress",
"streetAddress": "123 Main Street",
"addressLocality": "New York",
"addressRegion": "NY",
"postalCode": "10001"
},
"geo": {
"@type": "GeoCoordinates",
"latitude": "40.7128",
"longitude": "-74.0060"
},
"openingHours": ["Mo-Fr 09:00-17:00", "Sa 10:00-14:00"]
}—