Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Establish testable structure #67

Merged
merged 3 commits into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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