GravityView
2.17
The best, easiest way to display Gravity Forms entries on your website.
|
If this file is called directly, abort. More...
Public Member Functions | |
__clone () | |
__wakeup () | |
activate () | |
Plugin activation function. More... | |
add_to_gravitykit_admin_menu ( $foundation) | |
Adds "All Views" and "New View" as submenus to the GravityKit menu. More... | |
deactivate () | |
Plugin deactivation function. More... | |
dir ( $path='') | |
Retrieve an absolute path within the GravityView plugin directory. More... | |
get_link_to_all_views () | |
Returns the URL to the "New View" page. More... | |
get_link_to_new_view () | |
Returns the URL to the "All Views" page. More... | |
include_legacy_core () | |
Load more legacy core files. More... | |
include_legacy_frontend ( $force=false) | |
Include more legacy stuff. More... | |
is_compatible () | |
Is everything compatible with this version of GravityView? More... | |
is_compatible_future_gravityforms () | |
Is this version of GravityView compatible with the future version of Gravity Forms? More... | |
is_compatible_future_php () | |
Is this version of GravityView compatible with the future required version of PHP? More... | |
is_compatible_future_wordpress () | |
Is this version of GravityView compatible with the future version of WordPress? More... | |
is_compatible_gravityforms () | |
Is this version of GravityView compatible with the current version of Gravity Forms? More... | |
is_compatible_php () | |
Is this version of GravityView compatible with the current version of PHP? More... | |
is_compatible_wordpress ( $version=null) | |
Is this version of GravityView compatible with the current version of WordPress? More... | |
is_GF_25 () | |
Check whether Gravity Forms is v2.5-beta or newer. More... | |
load_settings () | |
register_activation_hooks () | |
Register hooks that are fired when the plugin is activated and deactivated. More... | |
relpath ( $path='') | |
Retrieve a relative path to the GravityView plugin directory from the WordPress plugin directory. More... | |
setup_gravitykit_admin_menu_redirects () | |
Redirects GravityKit's GravityView submenu pages to the appropriate custom post endpoints. More... | |
supports ( $feature) | |
Feature support detection. More... | |
uninstall () | |
Delete GravityView Views, settings, roles, caps, etc. More... | |
url ( $path='/') | |
Retrieve a URL within the GravityView plugin directory. More... | |
Static Public Member Functions | |
static | get () |
Get the global instance of . More... | |
static | is_network_activated () |
Check whether GravityView `is network activated. More... | |
Data Fields | |
$settings | |
const | ALL_VIEWS_SLUG = 'gravityview_all_views' |
const | FEATURE_GFQUERY = 'gfquery' |
const | FEATURE_JOINS = 'joins' |
const | FEATURE_REST = 'rest_api' |
const | FEATURE_UNIONS = 'unions' |
const | NEW_VIEW_SLUG = 'gravityview_new_view' |
Static Public Attributes | |
static | $min_gf_version = GV_MIN_GF_VERSION |
static | $version = GV_PLUGIN_VERSION |
Private Member Functions | |
__construct () | |
get_gravityforms_version () | |
Retrieve the current Gravity Forms version. More... | |
get_php_version () | |
Retrieve the current PHP version. More... | |
get_wordpress_version () | |
Retrieve the current WordPress version. More... | |
Static Private Attributes | |
static | $__instance = null |
static | $future_min_gf_version = GV_FUTURE_MIN_GF_VERSION |
static | $future_min_php_version = GV_FUTURE_MIN_PHP_VERSION |
static | $future_min_wp_version = GV_FUTURE_MIN_WP_VERSION |
static | $min_php_version = GV_MIN_PHP_VERSION |
static | $min_wp_version = GV_MIN_WP_VERSION |
If this file is called directly, abort.
The GravityView WordPress plugin class.
Contains functionality related to GravityView being a WordPress plugin and doing WordPress pluginy things.
Accessible via gravityview()->plugin
Definition at line 21 of file class-gv-plugin.php.
|
private |
Load some frontend-related legacy files.
GFAddOn-backed settings
Definition at line 125 of file class-gv-plugin.php.
__clone | ( | ) |
Definition at line 770 of file class-gv-plugin.php.
__wakeup | ( | ) |
Definition at line 773 of file class-gv-plugin.php.
activate | ( | ) |
Plugin activation function.
Register the gravityview post type upon WordPress core init.
Add the entry rewrite endpoint.
Flush all URL rewrites.
Add the transient to redirect to configuration page.
Clear settings transient.
Definition at line 288 of file class-gv-plugin.php.
References GravityView_Roles_Capabilities\get_instance(), and gravityview().
add_to_gravitykit_admin_menu | ( | $foundation | ) |
Adds "All Views" and "New View" as submenus to the GravityKit menu.
GravityKitFoundation | $foundation | Foundation instance. |
Definition at line 722 of file class-gv-plugin.php.
References GVCommon\has_cap().
deactivate | ( | ) |
dir | ( | $path = '' | ) |
Retrieve an absolute path within the GravityView plugin directory.
string | $path | Optional. Append this extra path component. |
Definition at line 338 of file class-gv-plugin.php.
References GRAVITYVIEW_DIR.
|
static |
Get the global instance of .
Definition at line 116 of file class-gv-plugin.php.
|
private |
Retrieve the current Gravity Forms version.
Overridable with GRAVITYVIEW_TESTS_GF_VERSION_OVERRIDE during testing.
Definition at line 512 of file class-gv-plugin.php.
References gravityview().
get_link_to_all_views | ( | ) |
Returns the URL to the "New View" page.
Definition at line 706 of file class-gv-plugin.php.
get_link_to_new_view | ( | ) |
Returns the URL to the "All Views" page.
Definition at line 692 of file class-gv-plugin.php.
|
private |
Retrieve the current PHP version.
Overridable with GRAVITYVIEW_TESTS_PHP_VERSION_OVERRIDE during testing.
Definition at line 486 of file class-gv-plugin.php.
|
private |
Retrieve the current WordPress version.
Overridable with GRAVITYVIEW_TESTS_WP_VERSION_OVERRIDE during testing.
Definition at line 499 of file class-gv-plugin.php.
include_legacy_core | ( | ) |
Load more legacy core files.
Definition at line 207 of file class-gv-plugin.php.
References gravityview().
include_legacy_frontend | ( | $force = false | ) |
Include more legacy stuff.
boolean | $force | Whether to force the includes. |
gravityview_include_frontend_actions
Triggered after all GravityView frontend files are loadedNice place to insert extensions' frontend stuff
Definition at line 180 of file class-gv-plugin.php.
References gravityview().
is_compatible | ( | ) |
Is everything compatible with this version of GravityView?
Definition at line 381 of file class-gv-plugin.php.
is_compatible_future_gravityforms | ( | ) |
Is this version of GravityView compatible with the future version of Gravity Forms?
Definition at line 472 of file class-gv-plugin.php.
is_compatible_future_php | ( | ) |
Is this version of GravityView compatible with the future required version of PHP?
Definition at line 410 of file class-gv-plugin.php.
is_compatible_future_wordpress | ( | ) |
Is this version of GravityView compatible with the future version of WordPress?
Definition at line 442 of file class-gv-plugin.php.
is_compatible_gravityforms | ( | ) |
Is this version of GravityView compatible with the current version of Gravity Forms?
Definition at line 457 of file class-gv-plugin.php.
is_compatible_php | ( | ) |
Is this version of GravityView compatible with the current version of PHP?
Definition at line 397 of file class-gv-plugin.php.
is_compatible_wordpress | ( | $version = null | ) |
Is this version of GravityView compatible with the current version of WordPress?
string | $version | Version to check against; otherwise uses GV_MIN_WP_VERSION |
Definition at line 425 of file class-gv-plugin.php.
is_GF_25 | ( | ) |
Check whether Gravity Forms is v2.5-beta or newer.
Definition at line 156 of file class-gv-plugin.php.
|
static |
Check whether GravityView `is network activated.
Definition at line 166 of file class-gv-plugin.php.
References GRAVITYVIEW_FILE.
load_settings | ( | ) |
Definition at line 142 of file class-gv-plugin.php.
register_activation_hooks | ( | ) |
Register hooks that are fired when the plugin is activated and deactivated.
Definition at line 276 of file class-gv-plugin.php.
relpath | ( | $path = '' | ) |
Retrieve a relative path to the GravityView plugin directory from the WordPress plugin directory.
string | $path | Optional. Append this extra path component. |
Definition at line 352 of file class-gv-plugin.php.
References GRAVITYVIEW_FILE.
setup_gravitykit_admin_menu_redirects | ( | ) |
Redirects GravityKit's GravityView submenu pages to the appropriate custom post endpoints.
Definition at line 659 of file class-gv-plugin.php.
References GVCommon\has_cap().
supports | ( | $feature | ) |
Feature support detection.
string | $feature | Feature name. Check FEATURE_* class constants. |
gravityview/supports
Overrides whether GravityView supports a feature. boolean | null | $supports | Whether the feature is supported. Default: null. |
Definition at line 531 of file class-gv-plugin.php.
References endswitch.
uninstall | ( | ) |
Delete GravityView Views, settings, roles, caps, etc.
Posts.
Meta.
Notes.
Capabilities.
Options.
Definition at line 562 of file class-gv-plugin.php.
References GravityView_GFFormsModel\get_database_version(), and GravityView_Roles_Capabilities\get_instance().
url | ( | $path = '/' | ) |
Retrieve a URL within the GravityView plugin directory.
string | $path | Optional. Extra path appended to the URL. |
Definition at line 368 of file class-gv-plugin.php.
|
staticprivate |
Definition at line 81 of file class-gv-plugin.php.
|
staticprivate |
Definition at line 76 of file class-gv-plugin.php.
|
staticprivate |
Definition at line 69 of file class-gv-plugin.php.
|
staticprivate |
Definition at line 48 of file class-gv-plugin.php.
|
static |
Definition at line 55 of file class-gv-plugin.php.
|
staticprivate |
Definition at line 62 of file class-gv-plugin.php.
|
staticprivate |
Definition at line 39 of file class-gv-plugin.php.
$settings |
Definition at line 89 of file class-gv-plugin.php.
|
static |
Definition at line 32 of file class-gv-plugin.php.
Referenced by GravityView_Change_Entry_Creator\enqueue_selectwoo_assets().
const ALL_VIEWS_SLUG = 'gravityview_all_views' |
Definition at line 22 of file class-gv-plugin.php.
const FEATURE_GFQUERY = 'gfquery' |
Definition at line 94 of file class-gv-plugin.php.
Referenced by gvfield\callback(), and GV\Mocks\GravityView_frontend_get_view_entries().
const FEATURE_JOINS = 'joins' |
Definition at line 99 of file class-gv-plugin.php.
const FEATURE_REST = 'rest_api' |
Definition at line 109 of file class-gv-plugin.php.
Referenced by Core\init().
const FEATURE_UNIONS = 'unions' |
Definition at line 104 of file class-gv-plugin.php.
const NEW_VIEW_SLUG = 'gravityview_new_view' |
Definition at line 24 of file class-gv-plugin.php.