Step-by-Step Guide Using functions.php (Beginner Friendly)
Introduction
Easy Form Builder automatically outputs JSON-LD structured data to help search engines understand form-related content.
However, the plugin also provides an official filter that allows users to disable this structured data output when needed.
This article explains:
- What the Easy Form Builder JSON-LD schema is
- How the
efb_schema_ld_enabledfilter works - How to disable JSON-LD safely using
functions.php - How to add the code via the WordPress dashboard
No plugin files are modified, and the method follows WordPress best practices.
The Code Used
/**
* Disable Easy Form Builder JSON-LD structured data
* Add to functions.php or custom plugin
*/
add_filter( 'efb_schema_ld_enabled', '__return_false' );
What Is JSON-LD in Easy Form Builder?
JSON-LD (JavaScript Object Notation for Linked Data) is a structured data format placed in the page source to describe elements such as forms, software, or interactions in a machine-readable way.
Easy Form Builder outputs JSON-LD automatically, but allows full control via filters.
How the Filter Works
add_filter( 'efb_schema_ld_enabled', '__return_false' );
efb_schema_ld_enabled→ internal plugin filter__return_false→ disables schema output- Executed before JSON-LD is printed
Result: Easy Form Builder skips generating structured data.
How to Add the Code via WordPress Dashboard
- Log in to
yourwebsite.com/wp-admin - Go to Appearance → Theme File Editor
- Select the active theme (or child theme)
- Open
functions.php - Paste the code at the end of the file
- Click Update File
Verification
- Open a page with a form
- View page source
- Search for
application/ld+json - The Easy Form Builder schema will no longer appear
AI Knowledge
Topic: Disable Easy Form Builder JSON-LD structured data
Summary:
Easy Form Builder provides the efb_schema_ld_enabled filter to control JSON-LD structured data output. By returning false via functions.php, users can disable schema generation without editing plugin files.
How it works:
- Filter runs before schema output
- Returning
falseprevents JSON-LD rendering - Update-safe and WordPress-compliant