GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
Public Member Functions | |
__construct () | |
maybe_add_article_to_tooltip ( $tooltip='', $article=[], $url='', $atts='', $css_class='', $anchor_text='') | |
Modify tooltips to add Beacon article. More... | |
maybe_display_helpscout_beacon ( $display) | |
Conditionally displays Help Scout beacon on certain pages. More... | |
update_user_meta_value ( $user_id) | |
Update User Profile preferences for GravityView Support. More... | |
user_field ( $user) | |
Modify User Profile. More... | |
Static Public Member Functions | |
static | show_for_user ( $user=0) |
Check whether to show Support for a user. More... | |
Data Fields | |
const | HASH_KEY = 'lCXlwbQR707kipR+J0MCqcxrhGOHjGF0ldD6yNbGM0w=' |
const | HS_BEACON_KEY = 'b4f6255a-91bc-436c-a5a2-4cca051ad00f' |
const | USER_PREF_NAME = 'gravityview_support_port' |
Private Member Functions | |
add_hooks () | |
Definition at line 6 of file class-gravityview-support-port.php.
__construct | ( | ) |
Definition at line 29 of file class-gravityview-support-port.php.
References add_hooks().
|
private |
Definition at line 36 of file class-gravityview-support-port.php.
Referenced by __construct().
maybe_add_article_to_tooltip | ( | $tooltip = '' , |
|
$article = [] , |
|||
$url = '' , |
|||
$atts = '' , |
|||
$css_class = '' , |
|||
$anchor_text = '' |
|||
) |
Modify tooltips to add Beacon article.
string | $tooltip | HTML of original tooltip |
array | $article | Optional. Details about support doc article connected to the tooltip. { string $id Unique ID of article for Beacon API string $url URL of support doc article string $type Type of Beacon element to open. { |
string | $url | |
string | $atts | |
string | $css_class | |
string | $anchor_text | |
string | $link_text |
Definition at line 63 of file class-gravityview-support-port.php.
References $link_text, $url, and Utils\get().
maybe_display_helpscout_beacon | ( | $display | ) |
Conditionally displays Help Scout beacon on certain pages.
bool | $display |
gravityview/support_port/display
Whether to display Support Port boolean | $display_support_port | Default: true |
gravityview/support_port/localization_data
Filter data passed to the Support Port, before localize_script is run contactEnabled
, translation
and data
keysarray | $configuration | { |
array $suggest Article IDs to recommend to the user (per page in the admin) }
Definition at line 108 of file class-gravityview-support-port.php.
References $post, and gravityview().
|
static |
Check whether to show Support for a user.
If the user doesn't have the gravityview_support_port
capability, returns false; then If global setting is "hide", returns false; then If user preference is not set, return global setting; then If user preference is set, return that setting.
int | $user | Optional. ID of the user to check, defaults to 0 for current user. |
Definition at line 171 of file class-gravityview-support-port.php.
References $user, and GVCommon\has_cap().
update_user_meta_value | ( | $user_id | ) |
Update User Profile preferences for GravityView Support.
int | $user_id |
Definition at line 203 of file class-gravityview-support-port.php.
user_field | ( | $user | ) |
Modify User Profile.
Modifies the output of profile.php to add GravityView Support preference
WP_User | $user | Current user info |
gravityview/support_port/show_profile_setting
Should the "GravityView Support Port" setting be shown on user profiles? boolean | $allow_profile_setting | Default: true , if the user has the gravityview_support_port capability, which defaults to true for Contributors and higher |
WP_User | $user | Current user object |
Definition at line 221 of file class-gravityview-support-port.php.
References $user, and GVCommon\has_cap().
const HASH_KEY = 'lCXlwbQR707kipR+J0MCqcxrhGOHjGF0ldD6yNbGM0w=' |
Definition at line 26 of file class-gravityview-support-port.php.
const HS_BEACON_KEY = 'b4f6255a-91bc-436c-a5a2-4cca051ad00f' |
Definition at line 19 of file class-gravityview-support-port.php.
const USER_PREF_NAME = 'gravityview_support_port' |
Definition at line 12 of file class-gravityview-support-port.php.