Advertisement
Guest User

wysiwyg field options not copying to new group item

a guest
Oct 29th, 2020
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. $meta_boxes[] = array(
  2.         'id'         => 'box_test',
  3.         'title'      => __( 'Test' ),
  4.         'post_types' => array( 'page' ),
  5.         'include'    => array(
  6.             'relation' => 'OR',
  7.             'template' => array( 'template-test.php' ),
  8.         ),
  9.         'context'    => 'normal',
  10.         'priority'   => 'high',
  11.         'revision'   => true,
  12.         'fields'     => array(
  13.             array(
  14.                 'name'    => __( 'Content' ),
  15.                 'id'      => 'content',
  16.                 'type'    => 'wysiwyg',
  17.                 'clone'   => true,
  18.  
  19.                 'options' => array(
  20.                     'tinymce' => array(
  21.                         'block_formats' => 'Paragraph=p; Heading 3=h3; Heading 4=h4',
  22.                         'toolbar1'      => 'formatselect,bold,italic,bullist,numlist,blockquote,hr,alignleft,aligncenter,alignright,link,unlink',
  23.                     ),
  24.                 ),
  25.             ),
  26.         ),
  27.     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement