gfpdf_rich_editor_settings

Estimate row height at 10px.

Description

apply_filters( 'gfpdf_rich_editor_settings', (string) $textarea_name_gfpdf_settings_args_id, (string) $textarea_rows_rows, (string) $editor_height_rows_10, (string) $editor_class_gfpdf_settings_args_id_class, (string) $autop_false, (unknown) $var ); 

Parameters (6)

0. $textarea_name_gfpdf_settings_args_id — Optional. (string) => [ 'textarea_name' => 'gfpdf_settings[' . $args['id'] . ']'
The textarea name gfpdf settings args id.
1. $textarea_rows_rows — Optional. (string) => 'textarea_rows' => $rows
The textarea rows rows.
2. $editor_height_rows_10 — Optional. (string) => 'editor_height' => $rows * 10
The editor height rows 10.
3. $editor_class_gfpdf_settings_args_id_class — Optional. (string) => 'editor_class' => 'gfpdf_settings_' . $args['id'] . ' ' . $class
The editor class gfpdf settings args id class.
4. $autop_false — Optional. (string) => 'autop' => false
The autop false.
5. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $textarea_name_gfpdf_settings_args_id = apply_filters( 'gfpdf_rich_editor_settings', $textarea_name_gfpdf_settings_args_id, $textarea_rows_rows, $editor_height_rows_10, $editor_class_gfpdf_settings_args_id_class, $autop_false, $var ); 
  2.  
  3. if ( !empty( $textarea_name_gfpdf_settings_args_id ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_rich_editor_settings callback 
  2. function filter_gfpdf_rich_editor_settings( $textarea_name_gfpdf_settings_args_id, $textarea_rows_rows, $editor_height_rows_10, $editor_class_gfpdf_settings_args_id_class, $autop_false, $var ) { 
  3. // make filter magic happen here... 
  4. return $textarea_name_gfpdf_settings_args_id
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_rich_editor_settings', 'filter_gfpdf_rich_editor_settings', 10, 6 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_rich_editor_settings', 'filter_gfpdf_rich_editor_settings', 10, 6 ); 

Defined (1)

The filter is defined in the following location(s).

/src/helper/abstract/Helper_Abstract_Options.php  
  1. wp_editor( stripslashes( $value ), 'gfpdf_settings_' . $args['id'], apply_filters( 'gfpdf_rich_editor_settings', [