mksamadnet
Forum Replies Created
-
Forum: Plugins
In reply to: [WC Cancel Order] Remove Cancel Order link from Completed EmailDone. Between, your plugin is showing a notice that it’s not tested with my current WordPress version!
Forum: Plugins
In reply to: [WC Cancel Order] Remove Cancel Order link from Completed EmailGreat. Thanks
It will be nice if this feature can be implemented in the plugin. For the time being, I have uninstalled the plugin from my site as it is not functioning as expected.
I am sure that thousands of site owners are looking for this feature!
Thanks!I am also looking for a similar feature. I need a single product listing based on colour. But not on site!
Forum: Plugins
In reply to: [Media Cleaner: Clean your WordPress!] Deleting database entriesHello Jordy,
Yeah, It was the reason and I spotted it.
Thanks for your response!
Hello,
Does the Fix for this issue released? I thought I have done a configuration miss and wasted lot of time reconfiguring it!
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] Unable to fetch category by nameYou may not be having page 2 in the uncategorized category
Try http://rajeshyadav.net/blog/wp-json/wp/v2/posts?filter%5Btaxonomy%5D=uncategorize&page=1
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] Unable to fetch category by nameIt is easy to fetch posts based on the category id. Try like below. Replace ‘1’ with the news category id to fetch latest 10 posts from the news category!
http://rajeshyadav.net/blog/wp-json/wp/v2/posts?categories=1&per_page=10
Forum: Plugins
In reply to: [JSON API] How to request all post through api?You are welcome!
Forum: Plugins
In reply to: [JSON API] How to request all post through api?You can use site.com/wp-json/wp/v2/posts/?per_page=100 to fetch latest 100 posts from your site.
I could see that the maximum limit is 100
- This reply was modified 9 years ago by mksamadnet. Reason: Maximum limit is 100
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] Problem with post?filter[tag]The below plugin may help you!
https://ww.wp.xz.cn/plugins/rest-api-filter-fields/Forum: Plugins
In reply to: [WordPress REST API (Version 2)] custom urlI’m not an expert developer. But, my logic says that there should be a file which will check by the app every time and should work based on the data on the file.
For example: The remote file should have a variable named Force_update: this value either be yes or no. If in case you find any major bug in your previous app release, you can just refer it as yes and can force the users to update the app.
I’m not sure whether any other option available inside android development toolkit to deal with such issues!
I’m also searching for an option to protect my rest api get requests.
@djibs13 ,Add following code to function page to change the api base from http://mywebsite/wp-json/wp/v2/posts to http://mywebsite/api/wp/v2/posts
add_filter( ‘rest_url_prefix’, ‘my_theme_api_slug’);
function my_theme_api_slug( $slug ) {
return ‘api’;}
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] custom urlThere is something called register_rest_route to create custom API routes. I don’t have much idea about.
Does this logic work for you
Inside app – > fetch the value of comment API dynamically
For example read a text file over url which has the comment API URL mentioned. Even if the comment url changes in the future, you can simply change the URL in the text file the same will be reflected in the app coding?
Does it work for you?
Forum: Plugins
In reply to: [WordPress REST API (Version 2)] custom urlHello @vespino,
Just add the following filter to your functions page to change the API base. The below will change the REST api route from example.com/wp-json/wp/v2/ to example.com/api/wp/v2/.
I don’t think changing the namespace is good idea!!.
add_filter( ‘rest_url_prefix’, ‘my_theme_api_slug’);
function my_theme_api_slug( $slug ) {
return ‘api’;}