Advertisement
fauzanjeg

Cutom WP Editor in Frontend Submit

Mar 18th, 2021 (edited)
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. /* Cutom WP Editor in Frontend Submit */
  2. function custom_wp_editor_frontend_submit( $args ) {
  3.     // $args['teeny'] = false; // Example of changing options
  4.  
  5.     $args['tinymce'] = array(
  6.         'toolbar1' => 'bold,italic,strikethrough,bullist,numlist,blockquote,hr,alignleft,aligncenter,alignright,link,unlink,wp_more,spellchecker,fullscreen,wp_adv',
  7.         'toolbar2' => 'formatselect,underline,alignjustify,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help'
  8.     );
  9.  
  10.     return $args;
  11. }
  12.  
  13. add_filter( 'jnews_frontend_submit_wp_editor_args', 'custom_wp_editor_frontend_submit' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement