Skip to content

mc_custom_content_editor

github-actions[bot] edited this page Jun 3, 2026 · 4 revisions

Filter the editor to use a custom content editor field.

Auto-generated Example

add_filter(
   'mc_custom_content_editor',
    function(
        string|bool $custom_editor,
        string $value,
        object $data
    ) {
        // Your code here.
        return $custom_editor;
    },
    10,
    3
);

Parameters

  • string|bool $custom_editor Bool to use default editor, otherwise the HTML output for your editor.
  • string $value Event description.
  • object $data Event object.

Returns

string|bool

Files

apply_filters( 'mc_custom_content_editor', false, $value, $data )

← All Hooks

Clone this wiki locally