Skip to content

Commit

Permalink
Add more integration for Query Monitor and display Pods constants and…
Browse files Browse the repository at this point in the history
… the Pods debug log
  • Loading branch information
sc0ttkclark committed Aug 18, 2024
1 parent 2fd7434 commit 4bc165d
Show file tree
Hide file tree
Showing 8 changed files with 573 additions and 29 deletions.
21 changes: 0 additions & 21 deletions classes/PodsInit.php
Original file line number Diff line number Diff line change
Expand Up @@ -2485,9 +2485,6 @@ public function run() {
// Compatibility with WP 5.4 privacy export.
add_filter( 'wp_privacy_additional_user_profile_data', array( $this, 'filter_wp_privacy_additional_user_profile_data' ), 10, 3 );

// Compatibility for Query Monitor conditionals
add_filter( 'query_monitor_conditionals', array( $this, 'filter_query_monitor_conditionals' ) );

// Support for quick edit in WP 6.4+.
add_filter( 'quick_edit_enabled_for_post_type', [ $this, 'quick_edit_enabled_for_post_type' ], 10, 2 );
add_filter( 'quick_edit_enabled_for_taxonomy', [ $this, 'quick_edit_enabled_for_taxonomy' ], 10, 2 );
Expand Down Expand Up @@ -2732,22 +2729,4 @@ public function filter_wp_privacy_additional_user_profile_data( $additional_user

return $additional_user_profile_data;
}

/**
* Add Pods conditional functions to Query Monitor.
*
* @param array $conditionals
* @return array
*/
public function filter_query_monitor_conditionals( $conditionals ) {
$conditionals[] = 'pods_developer';
$conditionals[] = 'pods_tableless';
$conditionals[] = 'pods_light';
$conditionals[] = 'pods_strict';
$conditionals[] = 'pods_allow_deprecated';
$conditionals[] = 'pods_api_cache';
$conditionals[] = 'pods_shortcode_allow_evaluate_tags';
$conditionals[] = 'pods_session_auto_start';
return $conditionals;
}
}
29 changes: 26 additions & 3 deletions src/Pods/Integration.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

98 changes: 98 additions & 0 deletions src/Pods/Integrations/Query_Monitor.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

118 changes: 118 additions & 0 deletions src/Pods/Integrations/Query_Monitor/Collectors/Constants.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 73 additions & 0 deletions src/Pods/Integrations/Query_Monitor/Collectors/Debug.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4bc165d

Please sign in to comment.