Bojan Denić
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Debug logs appear with logging set to CriticalI created this function that automatically deletes all logs that start with place-order-debug-* after 48h.
add_action( 'init', 'kha_auto_delete_old_place_order_logs' );
function kha_auto_delete_old_place_order_logs() {
if ( ! class_exists( 'WC_Logger' ) ) {
return;
}
$logger = wc_get_logger();
$handler = WC_Log_Handler_File::get_log_files();
if ( empty( $handler ) || ! is_array( $handler ) ) {
return;
}
$now = time();
$expiration = 48 * HOUR_IN_SECONDS;
foreach ( $handler as $log_key => $file_path ) {
if ( strpos( $log_key, 'place-order-debug' ) !== 0 ) {
continue;
}
$full_path = WC_Log_Handler_File::get_log_file_path( $log_key );
if ( file_exists( $full_path ) ) {
$modified_time = filemtime( $full_path );
if ( $now - $modified_time > $expiration ) {
unlink( $full_path );
}
}
}
}Forum: Plugins
In reply to: [WooCommerce] Debug logs appear with logging set to CriticalUse this function to remove:
/** Make our "Registration date" column sortable */
add_filter( 'manage_users_sortable_columns', 'rudr_make_registered_column_sortable' );
function rudr_make_registered_column_sortable( $columns ) {
return wp_parse_args( array( 'registration_date' => 'registered' ), $columns );
}
add_filter( 'woocommerce_logger_levels', function( $levels ) {
return array(
'emergency',
'alert',
'critical',
'error',
);
} );Forum: Plugins
In reply to: [Smart Recent Posts Widget] 1.0.4 is vulnerable to Cross Site Scripting (XSS)Forum: Plugins
In reply to: [TI WooCommerce Wishlist] New Security VulnerabilityPlease, update your plugin. Thanks!
Forum: Plugins
In reply to: [Variation Swatches for WooCommerce] Gallery future?I means Product Gallery and Variation Swatches to work together in one plugin.
Forum: Plugins
In reply to: [Serbian Addons for WooCommerce] fatal error@seebeen da li mozes da otklonis ove php greske?
Forum: Plugins
In reply to: [Serbian Addons for WooCommerce] fatal errorZadnja verzija:
Warning: foreach() argument must be of type array|object, string given in /home/user/public_html/wp-content/plugins/serbian-addons-for-woocommerce/vendor/x-wp/helper-woocommerce/Traits/Settings_API_Methods.php on line 144
Warning: foreach() argument must be of type array|object, string given in /home/user/public_html/wp-content/plugins/serbian-addons-for-woocommerce/vendor/x-wp/helper-woocommerce/Traits/Settings_API_Methods.php on line 144Forum: Plugins
In reply to: [NP Quote Request for WooCommerce] after update it show errorI can’t save Menus, when I deactivate your plugin all menus items showed.
Please, fix this ASAP! Thanks!
Forum: Plugins
In reply to: [Hestia Nginx Cache] Add the option to disable automatic purgingCan you update current plugin with latest changes on github?
Forum: Plugins
In reply to: [Marquee Running Text] Plug In Crashed My WebsiteHi, there is a fatal error!
Warning: require_once(modules\options_page.php): Failed to open stream: No such file or directory in /home/username/public_html/wp-content/plugins/marquee-running-text/marquee_running_text.php on line 57
Fatal error: Uncaught Error: Failed opening required ‘modules\options_page.php’ (include_path=’.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php’) in /home/username/public_html/wp-content/plugins/marquee-running-text/marquee_running_text.php:57 Stack trace: #0 /home/username/public_html/wp-settings.php(517): include_once() #1 /home/username/public_html/wp-config.php(80): require_once(‘/home/username/…’) #2 /home/username/public_html/wp-load.php(50): require_once(‘/home/username/…’) #3 /home/username/public_html/wp-admin/admin.php(34): require_once(‘/home/username/…’) #4 /home/username/public_html/wp-admin/index.php(10): require_once(‘/home/username/…’) #5 {main} thrown in /home/username/public_html/wp-content/plugins/marquee-running-text/marquee_running_text.php on line 57
Notice: is_embed је позван неправилно. Условне ознаке упита не раде пре него што је упит покренут. Пре тога, увек враћају false. Молимо вас да погледате отклањање грешака у Вордпресу за више података. (Ова порука је додата у издању 3.1.0.) in /home/username/public_html/wp-includes/functions.php on line 6078
Notice: is_search је позван неправилно. Условне ознаке упита не раде пре него што је упит покренут. Пре тога, увек враћају false. Молимо вас да погледате отклањање грешака у Вордпресу за више података. (Ова порука је додата у издању 3.1.0.) in /home/username/public_html/wp-includes/functions.php on line 6078
Forum: Plugins
In reply to: [Product Tabs for WooCommerce] Tab priorityHi,
How to change position and display at the end of the my custom tab? Now, my custom tab are first. How to do that?
- Description 2. Reviews 3. My custom tab
Forum: Plugins
In reply to: [Hestia Nginx Cache] Add the option to disable automatic purgingThanks @jaapmarcus
Please, add that note in your documentation. Thanks!
Forum: Plugins
In reply to: [Customer Reviews for WooCommerce] Incorent stats on single productsWhere to enable in WPML? Can you share with me the instructions on how to set it up?