Archives
Checkout: See how many items are in the cart
Use this code snippet to check how many items are in the shopping cart. If it returns zero (0) there aren’t any items in the cart at the moment.
Continue ReadingCheckout: Code Snippets
WordPress Shopping Cart plugin code snippets Shopping Cart Check how many items are in the shopping cart
Continue ReadingCheckout: Action – checkout_order_finished
Description checkout_order_finished action hook is fired when an order is finished. Arguments $order_id (The ID of the order which is completed eg. 123) $pmethod (The slug of the payment method which is used eg. pp) $paid (Paid status eg. Y or N) Example
Continue ReadingNewsletters: Filter – wpml_send_body
Description The wpml_send_body filter is used to filter the body/content of an email just before it is sent by the Newsletter plugin to the subscriber. It applies disregarding of the mail type you are using to send the emails. Usage View the code on Gist. Arguments $body (The body/content of the email) $phpmailer (The phpMailer Continue Reading…
Continue ReadingNewsletters: Action – wpml_subscriber_saved
Description wpml_subscriber_saved action hook is fired when a subscriber is saved (created or updated). Arguments $subscriber_id (ID of the subscriber that was saved). $data (The data Array used to save the subscriber). Example
Continue ReadingWebsite & Email Hosting
Get the best website & email hosting for speed, security, and peace of mind. No restrictions. Freedom to do what you need in order to run your business.