Skip to content

Commit

Permalink
updating uploads helper
Browse files Browse the repository at this point in the history
  • Loading branch information
iruzevic committed Jan 11, 2024
1 parent a21232e commit 9859b73
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 14 additions & 0 deletions src/Helpers/UtilsDeveloperHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,18 @@ public static function isDeveloperForceDisabledFieldsActive(): bool
{
return \apply_filters(UtilsConfig::FILTER_SETTINGS_IS_DEBUG_ACTIVE, UtilsConfig::SETTINGS_DEBUG_FORCE_DISABLED_FIELDS) ?? false;
}

/**
* Set and output data to output log using Query Monitor plugin.
*
* @param mixed $data Data to output.
*
* @return void
*/
public static function setQmLogsOutput($data = ''): void
{
if (\is_plugin_active('query-monitor/query-monitor.php') && UtilsDeveloperHelper::isDeveloperQMLogActive() && $data) {
\do_action('qm/debug', $data); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}
}
}
14 changes: 0 additions & 14 deletions src/Helpers/UtilsGeneralHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -849,20 +849,6 @@ public static function cleanPageUrl(string $url): string
return \preg_replace('/\\?.*/', '', $url);
}

/**
* Set and output data to output log using Query Monitor plugin.
*
* @param mixed $data Data to output.
*
* @return void
*/
public static function setQmLogsOutput($data = ''): void
{
if (\is_plugin_active('query-monitor/query-monitor.php') && UtilsDeveloperHelper::isDeveloperQMLogActive() && $data) {
\do_action('qm/debug', $data); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
}
}

/**
* Return all posts where form is assigned.
*
Expand Down

0 comments on commit 9859b73

Please sign in to comment.