Skip to main content
props to vancoder
Source Link
Pat J
  • 12.3k
  • 2
  • 28
  • 36

It doesn't look like you're calling add_action() correctly. It should be more like:

add_action( 'edit_page_form', 'wpse96952_editor' );
function wpse96952_editor() {
    wp_editor(
        "Sample",
        'mycontent',
        array( 'textarea_name' => 'mycontent' )
    );
}

(content changed to mycontent after I read @vancoder's comment)

It doesn't look like you're calling add_action() correctly. It should be more like:

add_action( 'edit_page_form', 'wpse96952_editor' );
function wpse96952_editor() {
    wp_editor(
        "Sample",
        'mycontent',
        array( 'textarea_name' => 'mycontent' )
    );
}

It doesn't look like you're calling add_action() correctly. It should be more like:

add_action( 'edit_page_form', 'wpse96952_editor' );
function wpse96952_editor() {
    wp_editor(
        "Sample",
        'mycontent',
        array( 'textarea_name' => 'mycontent' )
    );
}

(content changed to mycontent after I read @vancoder's comment)

Source Link
Pat J
  • 12.3k
  • 2
  • 28
  • 36

It doesn't look like you're calling add_action() correctly. It should be more like:

add_action( 'edit_page_form', 'wpse96952_editor' );
function wpse96952_editor() {
    wp_editor(
        "Sample",
        'mycontent',
        array( 'textarea_name' => 'mycontent' )
    );
}