woocommerce create subscription for user using functions / hooks provided

private function createWooComSubscription($user_id, $product_name, $total, $payment_id) { $arr = explode(“-“, $product_name); $product_title = trim($arr[0]); $product_subscription = trim($arr[1]); $product = $this->getWooComProduct($product_title); if ($product == null) { $this->getController()->log(“Product not found ! woo com create subscription failed”); return; } $variation = $this->getWooComVariation($product, $product_subscription); if ($variation == null) { $this->getController()->log(“Variation not found ! woo com create subscription failed”); return; … Read more

Woocommerce Export Orders with Order Item Meta

Vance I can tell you this is not possible with the stock plugin. I had this same issue on my site. My developer had to edit the plugin code so I could get the meta data in the CSV export. I have a site that deals strictly in personalization so this info is vital.

WordPress: code structure

I find that very easily my views become cluttered with logic, e.g. null checks, email validation, and retrieving values from the post object. How would you separate this out in WordPress? Is there any sort of MVC framework? There is no clear separation enforced by WordPress and there is extremely wide range of styles and … Read more

how to display the page content in popup window?

I use Plugin for display the page content in popup window Check official website for live demo Plugin advantage -Easy to configuration. -Unblockable. -HTML Editor to add popup contact. -Plugin supports Chrome, Firefox, Safari and IE 7,8,9,10

How to change data format in custom meta box field [closed]

EDIT You should be using date_create_from_format or its alias DateTime::createFromFormat() to convert on format to another. You can try the following $date = DateTime::createFromFormat(‘m-d-Y’, ’03-09-2015′); echo $date->format(‘d-m-Y’); This will convert 03-09-2015 to 09-03-2015 ORIGINAL ANSWER This is more a PHP question than WordPress question. You can simply use str_replace to change the / in your … Read more

The plugin has been used here? [closed]

I am not sure what you are seeing there, the whole site seems to be just missing with “To change this page, upload your website into the public_html directory” error message. From the quick search on logo it seems to be coming from DirectAdmin control panel. No WordPress in sight…

Editing a theme

If you have no coding experience the easiest would be to add a text widget in the header section and use an image of the button and make it link to where you want it to go. Just upload the image to your media and then check the URL of the image in media. Something … Read more