Lukasz
Forum Replies Created
-
It’s coming to Edge some time this year but I don’t think internet explorer will ever support it:
https://developer.microsoft.com/en-us/microsoft-edge/platform/status/detailssummary/
Forum: Plugins
In reply to: [WP Search Suggest] Does this search custom post types by default?Thanks,
My custom post type was in a plugin and I was also running this code:
if ( ! function_exists('disable_plugins_when_wp_search_suggest') ) { add_filter( 'option_active_plugins', 'disable_plugins_when_wp_search_suggest' ); function disable_plugins_when_wp_search_suggest( $active_plugins ) { $uri = 'action=wp-search-suggest'; $action = 'wpss-post-url'; if ( false !== strpos( $_SERVER['REQUEST_URI'], $uri) || isset($_POST['action']) && $_POST['action'] == $action ) { $for_enable = 'wp-search-suggest/wp-search-suggest.php'; $index = array_search($for_enable, $active_plugins); foreach( $active_plugins as $idx => $plugin ) { if ( $index !== array_search( $plugin, $active_plugins) ) { unset($active_plugins[$idx]); } } } return $active_plugins; } }So as you can see it disables all plugins when running search query, I will probably just include the custom post type code in my theme instead, thanks.
Forum: Themes and Templates
In reply to: [OceanWP] Is this Gutenberg ready?Thanks, good to hear!
Thanks @raster02,
I develop many multilingual websites and I did enjoy using this plugin and thought it would be great for our technical writers, but can’t risk the potential lost work.
Also FYI:
https://wptavern.com/how-will-gutenberg-phase-4-impact-multilingual-solutions-for-wordpressThanks.
Great, thank you.
Forum: Plugins
In reply to: [Flamingo] [_serial_number] is duplicated bug (race condition)Thank you for the honest answer TM
Forum: Plugins
In reply to: [Contact Form 7] Custom error messages possible?Hi,
This is how I target for custom errors:
add_filter( 'wpcf7_display_message', 'validaiton_messages_fail', 10, 2 ); function validaiton_messages_fail( $message, $status ) { $submission = WPCF7_Submission::get_instance(); if ( $submission->is( 'validation_failed' ) ) { $posted_data = $submission->get_posted_data(); $message = __( 'your cusotm error message', ''); } elseif ( $submission->is( 'mail_failed' ) ) { $posted_data = $submission->get_posted_data(); $message = __( 'your cusotm error message', ''); } elseif ( $submission->is( 'spam' ) ) { $posted_data = $submission->get_posted_data(); $message = __( 'your cusotm error message', ''); } return $message; }- This reply was modified 7 years, 3 months ago by Lukasz.
Forum: Plugins
In reply to: [Contact Form 7] WP rest api with post dataTo be more specific you need authentication, I can see in the code:
if ( ! current_user_can( ‘wpcf7_edit_contact_form’, $id ) ) {
return new WP_Error( ‘wpcf7_forbidden’,
__( “You are not allowed to access the requested contact form.”, ‘contact-form-7’ ),
array( ‘status’ => 403 ) );
}https://developer.ww.wp.xz.cn/rest-api/using-the-rest-api/authentication/
Forum: Plugins
In reply to: [Contact Form 7] Upload file field translationYou can’t change the text, each browser has a default opinion on how it should be displayed. You can hide it and create your own custom file upload button through CSS and JS or find a plugin like https://ww.wp.xz.cn/plugins/multiline-files-for-contact-form-7/
Google for more solutions.
It’s working for me, I didn’t try with a file attachment though. Try disabling recaptcha if still having issues.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 No Longer WokringIs the form successfully submitting? Do you get any errors? Are you using a php mail or a SFTP authenticated email account like google or outlook? Is your from sender field the same as your website domain?
Forum: Plugins
In reply to: [Contact Form 7] Validation ErrorTry submitting the form and inspect each field using the web console to see if CF7 has added the invalid classes to any of them, you may be able to narrow down which field is causing you issues.
Forum: Plugins
In reply to: [Contact Form 7] DOM event handlers not workingAlso:
wpcf7:submit
May work better.(it’s how I use it)Forum: Plugins
In reply to: [Contact Form 7] DOM event handlers not workingIf you tried multiple ways, it may be a firing issue, you can either wrap your function in:
$('.wpcf7-form').ajaxComplete(function() {
or:setTimeout(function().
So it won’t fire until ajax is complete.Forum: Plugins
In reply to: [Contact Form 7] Stop Form Sending When User Hits “Enter”I wouldn’t change this behaviour, this is normal accessible user behaviour, by removing this behaviour you are making your form less accessible.