$attr['name'], // 'media_buttons' => false, // 'textarea_rows' => 5, // 'editor_css' => '', 'teeny' => true, ]; /** * @see do_shortcode() */ \preg_match( '@\[([^<>&/\[\]\x00-\x20=]++)@', $attr['id'], $matches ); \ob_start(); \wp_editor( $attr['value'], // Content $matches[1] ?? $attr['id'], //$attr['id'], // Editor ID $settings // Settings ); $output = \ob_get_clean(); return \sprintf( '%s%s%s', $this->label(), $output, $this->description() ); } }