Skip to content

Commit

Permalink
Change load order to make work with DataTables
Browse files Browse the repository at this point in the history
Related to #2
zackkatz committed Nov 5, 2020
1 parent 59633e1 commit 69c80c4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion adminview.php
Original file line number Diff line number Diff line change
@@ -9,14 +9,18 @@
* Domain Path: /languages/
*/

add_action( 'gform_loaded', 'gv_extension_adminview_load' );
add_action( 'plugins_loaded', 'gv_extension_adminview_load', 100 );

/**
* Wrapper function to make sure GravityView_Extension has loaded
* @return void
*/
function gv_extension_adminview_load() {

if ( ! class_exists( 'GFAPI' ) ) {
return;
}

if ( ! class_exists( 'GravityView_Extension' ) ) {

if ( class_exists( 'GravityView_Plugin' ) && is_callable( array( 'GravityView_Plugin', 'include_extension_framework' ) ) ) {

0 comments on commit 69c80c4

Please sign in to comment.