From beb9ca816f88f49c2e22667847410766006eabe5 Mon Sep 17 00:00:00 2001 From: kodinkat Date: Fri, 17 May 2024 11:28:08 +0100 Subject: [PATCH] Support new disciple_tools_loaded hook --- dt-metrics/metrics.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dt-metrics/metrics.php b/dt-metrics/metrics.php index ea56cd849c..272ad2bd70 100644 --- a/dt-metrics/metrics.php +++ b/dt-metrics/metrics.php @@ -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' );