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

D.T theme and plugins loading order #2478

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Metrics: Support new disciple_tools_loaded hook (#2480)
  • Loading branch information
kodinkat committed May 21, 2024
commit 9ede52e9b2e0ed30c34a199bb47e976621293285
2 changes: 1 addition & 1 deletion dt-metrics/metrics.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function __construct(){
$url_path = dt_get_url_path();
if ( strpos( $url_path, 'metrics' ) !== false ){
// wait for D.T post type classes to be set up before building metrics for them
add_action( 'after_setup_theme', function (){
add_action( 'disciple_tools_loaded', function (){
$modules = dt_get_option( 'dt_post_type_modules' );
// Personal
require_once( get_template_directory() . '/dt-metrics/personal/coaching-tree.php' );
Expand Down
Loading