remove add to cart from free product page ( Mihai )

/* * this code later should be together/refactored with the ‘astra_woo_single_product_structure’ code from snippet named Others PHP ( Mihai ) */ add_action(‘wp’, ‘conditionally_remove_sticky_add_to_cart’); function conditionally_remove_sticky_add_to_cart() { // Check if we are on a single product page if (is_product()) { global…Continue reading

Fetch Tool Data by Task ID

// Author: Sumaiya, Clikcup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-24515 // Add action for fetching tool data add_action(‘wp_ajax_fetch_tool_data’, ‘fetch_tool_data’); add_action(‘wp_ajax_nopriv_fetch_tool_data’, ‘fetch_tool_data’); // For non-logged in users /** * Fetch tool data based on the provided task ID. * * @param string $task_id The task…Continue reading