From 090830506d93767fe06bfd847e7fe7b123f26631 Mon Sep 17 00:00:00 2001 From: Chris Abraham Date: Tue, 25 Jun 2024 10:04:01 +0700 Subject: [PATCH] put in some debug stuff Signed-off-by: Chris Abraham --- .../wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php | 2 +- .../mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php index 1d663bc..57beb44 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-presentations.php @@ -91,7 +91,7 @@ $query->the_post(); $params['ID'] = get_the_ID(); // post to update. } - +var_dump($params); $newid = wp_insert_post( $params ); // will insert or update the post as needed. if ( $newid ) { diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php index 9c9b186..0023fcb 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/includes/class-lf-mu.php @@ -183,7 +183,7 @@ private function define_admin_hooks() { // $this->loader->add_action( 'lf_sync_people', $plugin_admin, 'sync_people' ); //phpcs:ignore. // Example of how to run a sync locally on demand. - // $this->loader->add_action( 'init', $plugin_admin, 'sync_presentations' ); //phpcs:ignore. + $this->loader->add_action( 'init', $plugin_admin, 'sync_presentations' ); //phpcs:ignore. // $this->loader->add_action( 'init', $plugin_admin, 'sync_people' ); //phpcs:ignore. $this->loader->add_filter( 'dashboard_glance_items', $plugin_admin, 'custom_glance_items', 10, 1 );