Advertisement
fauzanjeg

Add filter wp editor agrs to custom

Aug 15th, 2021
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.47 KB | None | 0 0
  1. /* Add filter wp editor agrs to custom */
  2. $wp_editor_args = array(
  3.     'textarea_name'    => 'content',
  4.     'drag_drop_upload' => false,
  5.     'media_buttons'    => get_theme_mod( 'jnews_frontend_submit_enable_add_media', true ),
  6.     'textarea_rows'    => 25,
  7.     'teeny'            => true,
  8.     'quicktags'        => false,
  9. );
  10.  
  11. wp_editor(
  12.     isset( $post_data['content'] ) ? $post_data['content'] : '',
  13.     'content',
  14.     apply_filters( 'jnews_frontend_submit_wp_editor_args', $wp_editor_args )
  15. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement