Djules
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Social Login] Do not use wp_print_stylesHi,
I see what you did, this is quite an improvement, unfortunately you have hooked your function
wsl_add_stylesheets()
too late in the WordPress processus.Instead of login_head and wp_head actions, you should use the actions login_enqueue_scripts and wp_enqueue_scripts, as they are more likely to be used in themes.
Forum: Plugins
In reply to: [Cocorico Social] évolution – Compteurs asynchronesJe viens aussi de voir que même si on désactive l’affichage des compteurs, le nombre de partage par réseau social est tout de même appelé dans le code, pas cool pour les performances…
Forum: Plugins
In reply to: [Contact Form 7] Get form variable after submitForum: Plugins
In reply to: [Contact Form 7] Run PHP code after successful submitYou can use the filter wpcf7_validate, once all fields have been validated.
function post_validate( $result ) { ... } add_filter( 'wpcf7_validate', 'post_validate' );
Forum: Plugins
In reply to: [Contact Form 7] Issue with wpcf7_before_send_mailThe posted_data property is not a property of the WPCF7_ContactForm object, so you cannot get it like you did.
I’m pretty sure it throws an error as like you said the spin keep rotating.
Enable WP_DEBUG or watch your AJAX request in your browser dev tool.Forum: Plugins
In reply to: [Contact Form 7] Box for phone number and calendar for dates.You seem to have issues with HTML5 fields, regarding the browsers compatibility.
Have a look in the doc :
https://contactform7.com/faq/does-contact-form-7-support-html5-input-types/Forum: Plugins
In reply to: [Listo] Alphabetical order countriesHere is the function I used to sort the countries by label in french :
/** * Sort the data by label from Listo plugin (not handled in plugin yet) */ function sort_countries_by_label( $data, $options, $args ) { if ( ! $data ) return $data; usort( $data, 'compare' ); return $data; } function compare( $a, $b ) { if ( $a == $b ) return 0; for ( $i = 0, $l = min( mb_strlen( $a ), mb_strlen( $b ) ); $i < $l; $i++ ) { $cmp = compare_char( mb_substr( $a, $i, 1 ), mb_substr( $b, $i, 1 ) ); if ( $cmp != 0 ) { return $cmp; } } return (int) ( mb_strlen( $a ) > mb_strlen( $b ) ); } function compare_char( $a, $b ) { $chars = 'Aàá??BC?DEèéê?FGHIìí??JKLMNOòó???PQRSTUùú?üVWXYZ'; $chars .= 'aàá??bc?deèéê?fghiìí??jklmnoòó???pqrstuùú?üvwxyz'; $pos_a = mb_strpos( $chars, $a ); $pos_b = mb_strpos( $chars, $b ); if ( $pos_a === false ) return (int) ( false !== $pos_b ); return false === $pos_b ? -1 : ( $pos_a - $pos_b ); } add_filter( 'wpcf7_form_tag_data_option', 'sort_countries_by_label', 11, 3 );
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Can't add media files after updatingIt seems to be a JavaScript typo error. Call to a function named
memoize
instead ofmemorize
I guess…Hope it helps…
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Maj 2.6.1 …. bug editor wpMême problème constaté avec la mise à jour 2.6.1 ce matin.
On ne peut plus ajouter d’image non plus. En fait en y regardant de plus près il s’agit d’erreurs JavaScript qui bloquent tout le reste, notamment l’appel à une fonction
memoize
qui, je pense, devrait êtrememorize
.Si ?a peut aider…
Forum: Plugins
In reply to: [MailPoet Newsletters (Previous)] Can't add media files after updatingExactly the same problem after updating this morning.
Cannot add media, cannot show the textual version of my content in the WYSIWYG…Forum: Plugins
In reply to: [Polylang] Upgrading from 1.2.3 to 1.2.4 disable the pluginHum, something I ignored. And as my own plugin thrown an error, Polylang plugin couldn’t reactivate himself. Understood.
Thanks for your reply. And keep up the good work !
Forum: Plugins
In reply to: [Polylang] String Translation LanguageBe sure you’re displaying both languages in the top admin bar, and not only English.