I need to add the following to the purchase completion page in WooCommerce: Copy the event code snippet. You can add parameters to send additional on-page data. fbq(‘track’, ‘Purchase’); I tried adding the following code to the child theme functions.php file: Fatal error. I’m sure I’m messing something up but I’m a little lost. I tried quite a bit of
Tag: endpoint
Change WooCommerce thankyou page title based on order status
Attempting to change the title of the thank you page based on specific order statuses, by combining a filter and action as follows: but I have tried multiple ways to combine the two and without any success. Answer You can use the following to change “Order received” page title based on order statuses: Code goes in functions.php file of the
How do I get the site id in the same function that created the site?
I’m writing some php functions to work off of endpoints, specficially one that takes the input of a form to create a site within a wp multi-site. In terms of progress, the code below will take the input and create a site with the correct path and domain, but none of the meta information is being added. The root problem
How to implement custom item get endpoint with filtering in api platform?
I am working on a symfony/api platform app that allows users to track sports matches. My entities look like this (shortened for brevity): User.php MatchPlayer.php Match.php So in my model, a user can relate to many matches and a match can relate to many users via the glue table that also saves what position a user played. Now I want