WordPress.org

Ready to get started?Download WordPress

Forums

Co-Authors Plus
TinyMCE to guest author bio (1 post)

  1. tcdahlberg
    Member
    Posted 3 months ago #

    I needed tinyMCE to appear in the bio area of the guest authors for a more robust bio so I commented out line 655 of \wp-content\plugins\co-authors-plus\php\class-coauthors-guest-authors.php which looked like this:

    echo '<textarea style="width:300px;margin-bottom:6px;" name="' . esc_attr( $pm_key ) . '">' . esc_textarea( $value ) . '</textarea>';

    and added this:

    $settings = array('wpautop' => true, 'media_buttons' => true, 'quicktags' => true, 'textarea_rows' => '15', 'textarea_name' => esc_attr( $pm_key ) );
    wp_editor(wp_kses_post(esc_textarea( $value ) , ENT_QUOTES, 'UTF-8'), esc_attr( $pm_key ) , $settings);

    Many thanks for a very useful plugin!

    https://wordpress.org/plugins/co-authors-plus/

Reply

You must log in to post.

About this Plugin

About this Topic