GravityView  2.17
The best, easiest way to display Gravity Forms entries on your website.
Public Member Functions
GravityView_Admin_Add_Shortcode Class Reference

If this file is called directly, abort. More...

Public Member Functions

 __construct ()
 
 add_scripts_and_styles ()
 Enqueue scripts and styles. More...
 
 add_shortcode_button ()
 Add shortcode button to the Add Media right. More...
 
 add_shortcode_popup ()
 Add shortcode popup div. More...
 
 get_sortable_fields ()
 Ajax Given a View id, calculates the assigned form, and returns the form fields (only the sortable ones ) More...
 
 is_post_editor_screen ()
 check if screen post editor and is not related with post type 'gravityview' More...
 

Detailed Description

If this file is called directly, abort.

Definition at line 19 of file class-admin-add-shortcode.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Definition at line 21 of file class-admin-add-shortcode.php.

Member Function Documentation

◆ add_scripts_and_styles()

add_scripts_and_styles ( )

Enqueue scripts and styles.

Returns
void

Definition at line 153 of file class-admin-add-shortcode.php.

References GRAVITYVIEW_FILE, GV_PLUGIN_VERSION, and is_post_editor_screen().

◆ add_shortcode_button()

add_shortcode_button ( )

Add shortcode button to the Add Media right.

Returns
void
Since
1.15.3

Definition at line 51 of file class-admin-add-shortcode.php.

References GVCommon\has_cap(), and is_post_editor_screen().

◆ add_shortcode_popup()

add_shortcode_popup ( )

◆ get_sortable_fields()

get_sortable_fields ( )

Ajax Given a View id, calculates the assigned form, and returns the form fields (only the sortable ones )

Returns
void

Definition at line 193 of file class-admin-add-shortcode.php.

References gravityview_get_form_id(), gravityview_get_sortable_fields(), and gravityview_get_template_setting().

◆ is_post_editor_screen()

is_post_editor_screen ( )

check if screen post editor and is not related with post type 'gravityview'

Returns
bool

Definition at line 40 of file class-admin-add-shortcode.php.

Referenced by add_scripts_and_styles(), add_shortcode_button(), and add_shortcode_popup().


The documentation for this class was generated from the following file: