phloo
Forum Replies Created
-
Thanks @dvankooten
In the meantime I did something else and added a domain filter. So that it checks if the $to field contains the same domain as the contact form.
Your code is appreciated. The best would be if we could check for an action ID. If there is one.
Regards
Sure. In this case its based on user iD.
But also very easy to change as per role.Would be a good extra for the plugin.
A temp and easy fix was to add this to my functions:
function allow_editor_forms() { $user_id = 999; $capabilities = array( 'edit_forms' ); $user = new WP_User( $user_id ); foreach( $capabilities as $cap ) { $user->add_cap( $cap ); } } allow_editor_forms();After running it once, I removed the action again;
Hi Dimitris / @wpmudev-support6
thanks for this guide. Helps a lot.
I was researching for more solutions and found this:add_filter( 'forminator_custom_form_mail_admin_recipients', function( $recipients, $custom_form, $data, $entry ){ $check_field = 'select-1'; $emails = array( 'emailone' => array( 'david.hansen@lpl.com' ), 'emailtwo' => array( 'tanya.mathews@lpl.com' ), 'emailthree' => array( 'richard.mower@lpl.com' ), 'emailfour' => array( 'richard.weintraub@lpl.com' ), 'emailfive' => array( 'lexy.schmidt@lpl.com' ), 'emailsix' => array( 'mdedoyo@bradcable.com' ), ); $check_value = $data[ $check_field ]; if ( isset( $emails[ $check_value ] ) ) { return $emails[ $check_value ]; } return $recipients; }, 20, 4 );With a little tweaking it will probably work the way without revealing the mail addresses in the html source code.
Thanks again
thanks, but this is not what I asked for. I know about email routing.
As I tried to explain: the email addresses come from a custom field from the post/page itself.It is NOT set in the form itself.
We want to use 1 global contact form and add the recipient address dynamically.
Forum: Plugins
In reply to: [Fast Velocity Minify] How to stop removing preconnect & onload switching?Thanks for replying @alignak but this suggestion was discussed 4 months ago.
See my reply: https://wordpress.org/support/topic/how-to-stop-removing-preconnect-onload-switching/#post-14202633
Plugin still modifies custom code even without header cleanup enabled.
Forum: Plugins
In reply to: [Fast Velocity Minify] How to stop removing preconnect & onload switching?Good suggestions @ediet
As you can see, there has been no response in three months.
So I assume the author has no priorities to “fix” this. Unfortunately.Forum: Plugins
In reply to: [Meta for WooCommerce] Reset Meta Data broken since last updateThanks for your support!
Forum: Plugins
In reply to: [Meta for WooCommerce] Reset Meta Data broken since last updateSure Sol
Here you are
https://gist.github.com/despecial/9655444435bd755eb47ad5f2392acf50Forum: Plugins
In reply to: [Meta for WooCommerce] Reset Meta Data broken since last updateThat’s not possible (and not necessary). This is a live system with ongoing orders.
We are using the script since more then a year, all worked fine until your latest release.Since you switched to “build” the scripts with wp-scripts, it stopped working.
It’s not a compatibility problem with other plugins or themes (console has no errors or debug output)Forum: Plugins
In reply to: [Meta for WooCommerce] Reset Meta Data broken since last updateHi Saravanan,
all plugins and themes are up to date.
As I mentioned before: the function is not available.
So your plugin is not delivering the correct JS files.Same problem here. Tried to disable htaccess via settings. No change.
The problem is also that the archive names always start with a dot.
Even if I remove it when creating one.This bug happens all the time.
Forum: Plugins
In reply to: [Fast Velocity Minify] How to stop removing preconnect & onload switching?no problem. but unfortunately this is not the way it will work
preloading “print” styles have a lower browser priority, that’s why the first preload link is a normal one. the js fallback switch only works for “print” styles, so a combination is not possible.I suggest – if you find the time – to check out the link I added in the first post. The speed analysis is very good and shows whats the best approach currently.
Will wait til you checked why the “print” stylesheet gets removed.
A data-field to exclude certain files/tags would be awesome data-fvm=”exclude” or something like this.Forum: Plugins
In reply to: [Fast Velocity Minify] How to stop removing preconnect & onload switching?See the first post. I am not downloading it when JS is available.
1. Preconnect
2. Preload
3. Swap when page is loaded (as fallback)Forum: Plugins
In reply to: [Fast Velocity Minify] How to stop removing preconnect & onload switching?yes I could merge those two links to one as you mentioned it.
But there is a reason why they are separatedN.B. We can’t go full preload as it isn’t widely enough supported. In fact, at the time of writing, about 20% of this site’s visitors would be unable to make use of it. Consider the print stylesheet a fallback.
Only since end of 2020 newer browser support the preload tag.
So as a fallback, it’s split into two requests.