| 1 |
<?php |
| 2 |
|
| 3 |
// Exit if accessed directly. |
| 4 |
if ( ! defined( 'ABSPATH' ) ) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Renders the extended description field for the Campaign post type. |
| 10 |
* |
| 11 |
* @author WP Charitable LLC |
| 12 |
* @package Charitable/Admin Views/Metaboxes |
| 13 |
* @copyright Copyright (c) 2023, WP Charitable LLC |
| 14 |
* @since 1.0.0 |
| 15 |
* @version 1.0.0 |
| 16 |
* @version 1.8.8.6 |
| 17 |
*/ |
| 18 |
|
| 19 |
global $post; |
| 20 |
|
| 21 |
$charitable_textarea_name = 'content'; |
| 22 |
$charitable_textarea_rows = apply_filters( 'charitable_extended_description_rows', 90 ); |
| 23 |
$charitable_textarea_tab_index = isset( $view_args['tab_index'] ) ? $view_args['tab_index'] : 0; |
| 24 |
|
| 25 |
wp_editor( $post->post_content, 'charitable-extended-description', array( |
| 26 |
'textarea_name' => 'post_content', |
| 27 |
'textarea_rows' => $charitable_textarea_rows, |
| 28 |
'tabindex' => $charitable_textarea_tab_index, |
| 29 |
) ); |
| 30 |
|