Vlado Grcic
Forum Replies Created
-
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Lock products by products owned?No worries. Glad you made it work for you.
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Lock products by products owned?No. Plugin is open source. If you were able to do it, I’m glad. You can share it or not. I’m not going beyond that.
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Lock products by products owned?Thats beacuse you can’t lock products. Wasn’t a goal for this plugin. I could add it in the future but currently it won’t happen, sorry.
But the plugin plugin would be complete if there is a field created in the block level as well as the general settings level, where we can change the message displayed for information to get access to the restricted content/pages/posts/block.
There is. For blocks toggle “Inverse block”. That shows what you want to tell users what to do to get access. Regarding general its “Page to show” section. All of this should be in “Quick start” menu.
there should be this feature to truncate a defined number of paragraphs of a restricted content, then the access instructions will be at the base of it.
Hm, interesting. I’d need to think about how best to implement this but currently I’m only on bug fixes and this isn’t simple to implement.
we should be able to change “Restricted Pages” my account nav, to anything like “Unlocked Posts, Purchased Posts, Purchased Contents, or whatever”.
Yeah this is a good idea, someone already mentioned this but currently you can only do it either by translating or with a wordpress hook. I don’t have the time to check which currently. Sorry, its unfortunate you have to do this but as I said I’m currently on bug fixes. But I’ll see if I can that feature now. With new features I also need to think about future changes so need to be sure it will work in the future, I don’t want options to be crowded or change it too much later on.
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Page is restricted despite product boughtThanks for checking. I updated caching in my plugin. Should be working now. Please update to 1.7.3. Hopefully this’ll solve it, this seems to be the most likely issue.
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Page is restricted despite product boughtYes but I want to be sure which cache. Is it the redis one you mentioned?
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Page is restricted despite product boughtNot sure why thats what you got from what I said. However it does seem wp_cache can be persistent if a plugin for that is installed in the doc: https://developer.wordpress.org/reference/classes/wp_object_cache. I wasn’t aware of it. Could you try adding
add_action( 'wp_loaded', function(){
wp_cache_flush();
} );somewhere to test?
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Page is restricted despite product boughtThe only thing I cache in my plugin is within a page load. So while loading if something is loaded before during that load the cached version will be used but only while loading. It doesnt affect saving to db only reading which isnt stale since its only during page load. The way I handle permissions is by checking with woocommerce if user bought and the order is completed and per page what products are needed. If yes it shows the page if not it doesn’t. I dont cache anything for longer periods exactly for this reason. Cant really help you if your setup caches what shouldn’t be. Also regarding get/post my plugin should be using mostly post for data, wp should be doing that as well since I did most of it through wp functions.
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Plugin does not support PHP8.2Yeah it looks like its my plugin. Might have used something incorrectly for the later versions. I’ll try and fix it when I can. I have quite a few issues to resolve so not sure when.
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] New Pages Not ShowingIs that on my plugins custom menu page? Could you provide more details? Perhaps debug.log of the relevant time where this happened? Also maybe there is something visually wrong there you might have missed? Sorry for late replying just a long month and a half.
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Lock pages by hidden or private productsSorry for the late reply, Its been a busy month and a half. Currently it shouldn’t work with private products as you saw. I’m not sure how to handle that. I’d like to think about how to manage that.
Forum: Plugins
In reply to: [Page Restrict for WooCommerce] Edits not savingSorry for being this late. I haven’t yet figured out the solution here. Also I noticed you haven’t mentioned where this happened. Gutenberg editor or the plugins menu page? Its definitly an issue in gutenberg but haven’t found a problem on my menu page.
No problem. Hopefully I can figure out the gutenberg problem soon so this doesn’t happen 🙂 So to be clear my custom menu page works?
Thanks for checking. There is definitly a separate problem in gutenberg which I thought might be connected but since it doesn’t work at all it doesnt seem like it. I’ll check and fix whenever I can.
Is it a problem on gutenberg/classic or does it happen on my plugins menu page as well?