Chris
Forum Replies Created
-
Forum: Plugins
In reply to: [Shop as Client for WooCommerce] Order history: Filter by “order handler”Great – many, many thanks for that!
Forum: Plugins
In reply to: [Shop as Client for WooCommerce] Order history: Filter by “order handler”Oh wow, that’s quite a coincidence – perfect!
Hi Darren,
Is it possible to write the query (or in general a nested meta query) in a shortcode like
echo do_shortcode( '[ajax_load_more … ]' );
Thanks!
- This reply was modified 3 years, 10 months ago by Chris.
Hi Richard,
I just tried the update but unfortunately it does not work for me.
See screencast: https://www.dropbox.com/s/1s7gotwlyelgfg8/PolylangCustomizer.mp4?dl=0Plugin versions:
Add Polylang support for Customizer: 1.1.3
Polylang Pro: 2.7.3I just ran into the same problem — thanks for fixing it!
Thanks a lot for outlining this.
I just read a bit through the
relevanssi_match
hook (https://www.relevanssi.com/knowledge-base/relevanssi-match/ and https://www.relevanssi.com/knowledge-base/using-customfield_detail/) and I was wondering if it would be possible when the restricted content would be in a certain custom field (ACF field), for examplepremium-user-content
?add_filter('relevanssi_match', 'cfdetail'); function cfdetail($match) { global $customfield_data; $customfield_data[$match->doc] = $match->customfield_detail; return $match; } add_filter('relevanssi_match', 'rlv_cf_boost'); function rlv_cf_boost( $match ) { $user = wp_get_current_user(); $detail = json_decode( $match->customfield_detail ); if (!empty($detail)) { if (isset($detail['premium-user-content'])) { if ( ! in_array( 'premium-member', $user->roles[0], true ) ) { $match->weight = 0; } } } return $match; }
Would that work with Relevanssi premium?
I am very thankful for your time!- This reply was modified 4 years, 7 months ago by Chris.
Hi Mikko,
Many thanks for getting back to me so quickly and for your hint.
I made progress but there’s one thing that I don’t figure out …
So this is my current filter hook:add_filter( 'relevanssi_post_ok', 'rlv_allowed_user', 11, 2 ); function rlv_allowed_user( $show, $post_id ) { $user = wp_get_current_user(); $allowed_all = array( 'member', 'board' ); $allowed_pemium_only = array( 'premium-member' ); if ( in_array( 'acf/restricted', $block_names ) ) { // Do not show to non-premium users if ( !( in_array( 'premium-member', $user->roles[0] ) ) ) { $show = false; } } return $show; }
It says that if a user does not have the role “premium-member” no search results will be displayed. So that’s obviously not what I want. ??
What I need is another a condition to check if the found result is limited to only be viewed by premium users. But I don’t know how to do that. It’s not that whole posts would not be visible to non-premium users but it’s just some snippets in these posts that are wrapped in
if ( !( in_array( 'premium-member', $user->roles[0] ) ) ) {
.Do you have another hint for me?
Thanks a lot for your effort!Forum: Plugins
In reply to: [Contact Form 7] Multiple forms with same ID on same pageHi,
Thank you for clearing things up.
I will ask the question in that forum but I would appreciate if you could have a look at the website on which the problem occurs:
The list is expandable and each list item has a contact form. The first five work well but when the six’s is loaded none of the forms works anymore.
Forum: Plugins
In reply to: [Contact Form 7] Multiple forms with same ID on same pageThanks for getting back to me so quickly.
Unfortunately I currently don’t have a public link for testing but I will provide one asap.
I just found out that multiple forms even with the same ID actually work – sorry for that. The problem is when using WPCF7 with the Ajax Load More plugin (ALM, https://connekthq.com/plugins/ajax-load-more/).
The ID of the form which is loaded via ALM is not unique anymore but the same as the first one (in my case
wpcf7-f5-o1
). This causes the problem, doesn’t it?Do you have an idea how to maintain the ID logic (
wpcf7-f5-o1
,wpcf7-f5-o2
,wpcf7-f5-o3
, …) even when forms are loaded via ALM?Forum: Plugins
In reply to: [Contact Form 7] Is multiple forms on the same page supported?Hey @dalefoxwiz,
I ran into the same issue. Is it possible that you share your solution?
Many thanks,
ChrisEs ist das offizielle Plugin: https://docs.woocommerce.com/document/paypal-express-checkout/
Ich finde es auch merkwürdig – zumal es nach dem Deaktivieren und wieder Neuaktivieren wieder alles in Ordnung ist.
Danke fürs Nachforschen.
Vielen Dank für den Hinweis – es lag an dem Plugin ?WooCommerce PayPal Checkout Gateway?. Als ich deaktiviert habe, griff auch wieder der Button-Text aus WooCommerce Germanized. Trotz der Reaktivierung des PayPal-Plugins ist der Text weiterhin richtig.
Works perfectly again—thanks for the fix!
After refreshing the permalinks there’s no effect.
Thanks for the quick fix — it works!