• Features
  • Pricing
  • Docs
  • Community
  • Download
  • Try demo
Buy Now
  • Features
  • Pricing
  • Get Help
  • Download
  • Try demo
Buy Now

Get in Touch wpfronteditor@gmail.com

Hooks

  • fus_editor_js_default_content

Getting Started

  • Shortcodes
  • Overview – WP Front User Submit
  • How to Install
  • Home
  • Docs
  • Hooks
  • fus_editor_js_default_content

fus_editor_js_default_content

Filters the default post content of 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;
});
What are your Feelings
Share This Article :
  • Facebook
  • Twitter
  • LinkedIn
  • Pinterest
Still stuck? How can we help?

How can we help?

Updated on April 10, 2023

Powered by BetterDocs

©2023 WP Front User Submit