Documentation |
March 11, 2023
fus_editor_js_default_content
apply_filters( 'fus_editor_js_default_content', array $default_content)
Filters the default post content of the EditorJS field in the form
Example:
add_filter('fus_editor_js_default_content', function ($default_content) {
$default_content = [
'time' => time(),
'blocks' => [
[
'type' => 'paragraph',
'data' => [
'text' => __('Default Content', FE_TEXT_DOMAIN),
],
]
]
];
return $default_content;
});