Goharika
Forum Replies Created
-
Forum: Plugins
In reply to: [WooCommerce] Create coupon with WP APINow everything is working, I can create coupons, orders and products.
Another question about payments with none credit card.
Here we can set order status.
How can I organize payment with api ?
Your some advise will be great.
ThanksForum: Plugins
In reply to: [WooCommerce] Create coupon with WP APIThanks,
Error comes because of json structure.
Now working perfect.Forum: Plugins
In reply to: [WordPress REST API (Version 2)] WP API and WooCommerceThanks Daniel Bachhuber ??
Forum: Plugins
In reply to: [WooCommerce] Create coupon with WP APIAs you say Claudio Sanches, I have correct my json. but again empty, And I have got that error
{“errors”:[{“code”:”woocommerce_api_missing_callback_param”,”message”:”Missing parameter data”}]}
Are this all json elements required to include for getting result?Forum: Plugins
In reply to: [Membership 2] API InstanceHi Philipp,
I am working with membership plugin api too.
Please can you guide me , I need to connect membership plugin with WP REST API, as I am none professional in php want to find easiest way to do that.I am looking now in help>API documentation, as you code above there is some functions too, that we need include to our plugin to make it work.
And now I can’t find way how my request url will look like. Or how can I see users data, as I want get this data in my application to control users from there.
Any help will be useful.
ThanksForum: Plugins
In reply to: [WP REST API (WP API)] End point for custom post type in v2Thanks for help TBRudy3
This is really help. Yes I know that I should register my custom post types. Here is another one that I generally working on.
https://lc13754376.on-rev.com/restapi/wp-json/wp/v2/memberships . this returns empty array too. I need some advice for arguments.Forum: Plugins
In reply to: [WP REST API (WP API)] End point for custom post type in v2Is there anybody got the same problem?
For example I have custom post type My Music and that is not empty. Here is my url that I trying to get data https://lc13754376.on-rev.com/restapi/wp-json/wp/v2/posts?type=music but that is empty array, please if somebody knows what should I do for getting data.Forum: Plugins
In reply to: [WordPress REST API (Version 2)] Can't get user informationLet me explain clearly.
I have list of users, they shouldn’t post anything, they are my subscribers. So I want to get information about their role or status for third party app. If user status is suspended I want to stop the service. So my users shouldn’t work with posts or etc. they are just member of my Membership. In this case please let me know am I doing right working with WP API?Forum: Plugins
In reply to: [Membership 2] API InstanceI have register route with api, for my membership 2 plugin, Here how it looks like
add_action( ‘init’, ‘add_memberships_to_json_api’, 30 );function add_memberships_to_json_api(){
global $wp_post_types;
$wp_post_types[‘ms_relationship’]->show_in_rest = true;
$wp_post_types[‘ms_relationship’]->rest_base = ‘memberships’;
$wp_post_types[‘ms_relationship’]->rest_controller_class = ‘WP_REST_Posts_Controller’;
}
And now get request returns me empty array, what am I doing wrong? I need to get my memberships not empty array.
Here is the url where I am working on https://lc13754376.on-rev.com/restapi/wp-json/wp/v2/memberships
I am going to add even ID parts, to get membership by ID, but need help to continue…Forum: Plugins
In reply to: [Membership 2] How to set access on attachmentOk I see we have this option on your plugin Pro version. Just more question about changing plugin version. Please can you help me with this. I have use free version on my website, but now I have got Pro version how can I update plugin without losing any data.
Best Regards,
GoharForum: Plugins
In reply to: [Membership 2] How to set access on attachmentThanks for support. This helps to protect page. But I need to protect something more. I have activated Media Protection add on as you say, but I need to hide my books urls too. As on hover it appears again, not the same way as before /wp-uploads/ …. it turns into /downloads/…pdf, but not secure.
For example I am selling my products, they are .pdf books. When user is registering he can see page content, and download pdfs, and here he can see pdf links on the bottom of browser corner. I don’t want to show url someone.Forum: Plugins
In reply to: [Membership 2] Membership use one pageLet me explain more clear.
I want after this registering not bring me memberships list page. I want checkout page. as you said I have created new page put there my form. From Membership Settings add My page as Registration Page. But after registering it doesn’t bring me checkout page, just empty pageForum: Plugins
In reply to: [Membership 2] Membership use one pageThanks for help, yes this brings me registration page, My problem was skiping checkout page. But I think this is not possible.
As you put here title , and in this way I can change title of registration form, I have one more question about shortcode attributes, is there available shortcodes to change inputs titles and etc like that.Forum: Plugins
In reply to: [WP REST API (WP API)] End point for custom post type in v2Hi all,
I working with membership2 plugin https://premium.wpmudev.org/project/membership/ and want to get whole data about members. This is the same custom post type, And I have tried to get with this url https://lc13754376.on-rev.com/restapi/wp-json/wp/v2/posts?type=membership2. Now get only empty array [] . But I need to get members list, or post there new members with api. Please can you help me with this.Forum: Plugins
In reply to: [Genesis eNews Extended] MyMail – Email Newsletter Plugin for WordPressIf somebody will need in the future, it is becoming because of file permissions. As file permissions were closed plugin can’t add directory template files in main wordpress upload directory. Or we can do it manual just take this templates folder and add it in uploads via ftp.