PHP function access for custom widget
-
Hello,
Howo do I access crowdfunding data for a product id directly from php.
I am trying to make a custom thermometer widget using the crowdfunding data.I have tried using do_shortcode() but I get nothing:
$project_goal = do_shortcode(‘[product_crowdfunding_goal product_id=”$id”]’);
$project_received = do_shortcode(‘[product_total_orders_sum product_id=”$id”]’);
$project_deadline = do_shortcode(‘[product_crowdfunding_deadline product_id=”$id”]’);
$project_goal_to_go = do_shortcode(‘[product_crowdfunding_goal_remaining product_id=”$id”]’);
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘PHP function access for custom widget’ is closed to new replies.