external Integration with wordpress timeout error

Just in case anyone else stumbles upon the same problem, here is the most robust disabling I could think of, and it seems to work as expected: ini_set(‘max_execution_time’, 0); set_time_limit(0); ignore_user_abort(true); ini_set(‘output_buffering’, ‘off’); ini_set(‘zlib.output_compression’, false); ini_set(‘implicit_flush’, true); ob_implicit_flush(true); while (ob_get_level()) { ob_end_flush(); } flush();

Woocommerce variable products are being added to the card on the homepage (ajax)

I was trying to fix this at the last 4 hours and I got it. You need to change: ajax_add_to_cart add_to_cart_button button for this: button product_type_variable add_to_cart_button on the follow archives: wp-content/themes/tyche/inc/libraries/widgets/widget-tyche-products/view/layout-a.php wp-content/themes/tyche/inc/libraries/widgets/widget-tyche-products/view/layout-b.php wp-content/themes/tyche/inc/libraries/widgets/widget-tyche-products/view/layout-c.php wp-content/themes/tyche/inc/libraries/widgets/widget-tyche-products/view/layout-d.php Its located between lines 60~90. You need to change in every archive. Sorry for my bad English. Love the community, … Read more

WooCommerce – Get products from category right before deleting category

The hook delete_term_taxonomy fires before the category is deleted. If you look at the original code: /** * Fires immediately before a term taxonomy ID is deleted. * * @since 2.9.0 * * @param int $tt_id Term taxonomy ID. */ do_action( ‘delete_term_taxonomy’, $tt_id ); $wpdb->delete( $wpdb->term_taxonomy, array( ‘term_taxonomy_id’ => $tt_id ) ); /** * Fires … Read more