For developers
Last updated
Last updated
You can add to your theme unique templates for the Content Egg plugin.
Hook is called every time after saving/updating data of the Content Egg plugin.
Parameters:
$data
- (array) Data array.
$module_id
- (string) Module ID.
$post_id
- (int) Post ID.
$is_last_iteration
- (bool) Is this the last iteration or will there be other modules that need to save the data right now?
Hook is called every time after creating the post by autoblog
Parameters:
$post_id
- (int) Post ID.
The Content Egg data is stored in standard Custom fields of Wordpress. In your theme or plugin you can get an access to the raw data of each module:
The recommended way to get the Content Egg data, after processing for display on the site:
Templates for modules might be stored in theme directory. Thus you can create theme with the special number of Content Egg templates. And, maybe, you will want to disable some or all standard Content Egg templates. Use the filter to do this:
The first parameter will be array of templates list, the second – module title.
For block templates:
Also you can disable some modules:
Use these features carefully, explain to the user why some standard plugin features are disabled.
If you are the author of a theme or a plugin, and you have any questions or proposes, please apply to our support.