I have an issue with woocommerce. I am new to woocommerce as well as wordpress, but need to check if the current user is in trial period or already renewed user.
I hope you would like to teach me kindly.
Currently I am using action hooks in woocommerce, woocommerce_subscription_status_changed exactly. This hook function does have parameter $subscription, which might be able to give me that info, I believe.
Is there a function like wcs_is_in_trial?
Thanks,
Alexis
Related
I want to develop a job board website. I want specific feature in that is job posts will be created automatically by email parsing.
I tried Zapier, but it creates only blog posts.
And tried postie plugin to, but Gmail didn't allow it.
Willing to use job monster / work scout/ superio any one of these themes. If you have any suggestions, please let me know about it.
Is there any way to parse the email data and create a new job post. Please help me to resolve this issue.
No paid task. Need help to learn the things
There is a lot to unpack here.
The main problem you are going to encounter is that the emails you are parsing may not all be formatted the same. To pull the info out of an email you will need to be able to generate some rules to extract it.
If however, the emails are formatted the same then you can use the "split" function in Zapier to pull out the various bits of data from the email. Once you have these you can create a new post with your Zap.
I would recommend looking for a Wordpress plugin that allows you to create lists with custom post types. WP-Bakery does this from memory. You can set up a custom feed based on that post type.
Hopefully this helps narrow down the process for you. Good Luck.
I know that Stackoverflow is normally for coding assistance, but I have a quick question for the community - if this could be better answered in another forum, I apologise, and if you could let me know where to ask, I will do so:
Question: When creating a new post on the front end via a custom post type, does wordpress automatically create the relevant timestamps? If it does, does that mean that it would automatically modify the timestamps or create the last modified values or do I need to add hidden fields in the form(s) to do so?
Thankyou.
Check out get_the_modified_date and get_the_modified_time functions.
You should be able to execute these either in The Loop or in a Custom Post type page itself.
Apologies if I'm missing something here, but is it possible to ban a user from posting to a blog?
Is there a way to integrate with something like toolator or similar?
Are you talking about banning the end users to comment on a blog which is on publish server ? Are you capturing the user's email ID and name before commenting ? If yes you might have to reverse replicate all the comments and their respective username and email, further provide author to determine which all they want to block this could be achieved through many ways, one way could be a participant step with workflow to approve the comments. Once these are approved prepare a list of users need to be blocked and publish them. Add the logic in your comment so that the user not in the banned list can only comment. These are just my thoughts for now. Hope this helps you to get some direction. Putting here as an answer rather than comment since cannot add it in comments its too long.
I'm not really familiar to alfresco, so I wish that the question will not bother everyone. However I hope for your help.
When I create a trial user for alfresco by webscript, but I want the user will be delete after 30 days trial. How can I do that? Can anyone give me an idea? (I hope that I will not have to use java-backend webscript because I never do it before.)
Thanks you very much!
You could use a scheduled custom action triggered every day that checks if some user has been created more than 30 days ago. For the custom action you should see my blog, or just google it, you'll find a lot of material about.
If you need some help with the javascript action that is triggered, just let us know.
I've just started to work with WordPress and trying to create a Micro-Blogging Site like twitter. I've installed P2 theme. It's working fine.we can post our statuses like tweets and all.
Now the problem where I am stuck is that:-
As soon as any user logs into the site( I am running it on my localhost and had created users on my own from backend) he/she can see all the posts and tweets of all other users.
So I tried to make few groups and assign several users to each of the groups.
Since I am totally new to WP I searched for may plugins which can allow me to create group and assign members , So that the user from a particular group can see the posts and tweets of the users of that same group.
But I am unable to find out any such plugin(or it might be that I am unable to use the plugins which I found through googling around).
So please can anyone help me to get around this problem.
I would really appreciate any kind of help.
Thanks,
chirag.tyagi
This site had a Buddypress theme that integrated with P2 so that you could use BP's group functionality with P2 but it seems to be down and the other mirrors to this project are also down.
However there are workarounds that couple BP's Groups functionality with plugins to clone Twitter with hashtags and followers and the private groups you desire. See this for an example which I think should work for you.
Remember NOT to disable groups, contrary to what the post suggests.