Skip to content

Commit

Permalink
reestablish testable structure
Browse files Browse the repository at this point in the history
closes #67
  • Loading branch information
crstauf authored Sep 26, 2023
1 parent d8dc437 commit 5607e2c
Show file tree
Hide file tree
Showing 22 changed files with 1,707 additions and 2,466 deletions.
345 changes: 155 additions & 190 deletions acf/qmx-acf-collector.php

Large diffs are not rendered by default.

41 changes: 10 additions & 31 deletions acf/qmx-acf-data.php
Original file line number Diff line number Diff line change
@@ -1,37 +1,16 @@
<?php
/**
* Plugin Name: QMX: ACF Data
* Plugin URI: https://github.com/crstauf/query-monitor-extend/tree/master/acf
* Description: Query Monitor data for ACF collector.
* Version: 1.0.1
* Author: Caleb Stauffer
* Author URI: https://develop.calebstauffer.com
* Update URI: false
*/

defined( 'WPINC' ) || die();

if ( defined( 'QM_DISABLED' ) && constant( 'QM_DISABLED' ) ) {
return;
}
class QMX_Data_ACF extends QM_Data {

if ( constant( 'QMX_DISABLED' ) ) {
return;
}
public $fields = array();
public $field_keys = array();
public $post_ids = array();
public $callers = array();
public $counts = array();
public $field_groups = array();
public $local_json = array();
public $loaded_field_groups = array();

add_action( 'qmx/load_data/acf', static function () {

class QMX_Data_ACF extends QM_Data {

public $fields = array();
public $field_keys = array();
public $post_ids = array();
public $callers = array();
public $counts = array();
public $field_groups = array();
public $local_json = array();
public $loaded_field_groups = array();

}

} );
}
Loading

0 comments on commit 5607e2c

Please sign in to comment.