dedrago
Forum Replies Created
-
Forum: Plugins
In reply to: [Frontend Reset Password] “Error: key not found”Same here. Switched to 7.2 – stopped working.
Forum: Plugins
In reply to: [WP Job Manager] jm-ajax/get_listings/Same here. jm-ajax/get_listings takes long to complete.
Forum: Plugins
In reply to: [WP Better Permalinks] Auto update slugsIf someone will need to update post slugs automatically after import just add this function after your import.
function my_update_posts() { $args = array( 'post_type' => 'job_listing', 'numberposts' => -1 ); $myposts = get_posts($args); foreach ($myposts as $mypost){ wp_update_post($mypost, true); } }
Forum: Plugins
In reply to: [International Telephone Input for Contact Form 7] ipinfo.io limits.@sveinhansen Hey, try this one
var intl_tel_default_setting={
initialCountry: “auto”,
utilsScript: wpcf7_utils_url,
geoIpLookup: function(callback) {
jQuery.get(‘https://geoip.nekudo.com/api’, function() {}, “jsonp”).always(function(resp) {
var countryCode = (resp && resp.country.code) ? resp.country.code : “”;
callback(countryCode);
});
}
};Also do the same for script.min.js.
- This reply was modified 6 years, 4 months ago by dedrago.
Forum: Plugins
In reply to: [International Telephone Input for Contact Form 7] Input maskYeah! This one does the trick! Thank you Damiarita!
Forum: Plugins
In reply to: [International Telephone Input for Contact Form 7] Input maskThank you for the fast reply! Could you please give me an example how to create a condition. If country is US set .phone_us class to the input field. Thank you very much!
Forum: Plugins
In reply to: [Contact Form 7] wp_redirect doesn’t workTo do ridirect with dynamic variables, please use cookies.
So, before return, use
setcookie("id", $id, time() + 60*60*24*30, '/');
Create function after thatfunction getCookie(name) { var matches = document.cookie.match(new RegExp( "(?:^|; )" + name.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, '\\$1') + "=([^;]*)" )); return matches ? decodeURIComponent(matches[1]) : undefined; } document.addEventListener( 'wpcf7mailsent', function( event ) { location = 'https://www.example.com/&u_id=' + getCookie('ifs_id'); }, false ); </script> <?php } add_action( 'wp_footer', 'vc_dom_event_footer' );
Forum: Plugins
In reply to: [Contact Form 7] wpcf7_mail_sent doesn’t workIf you need to test the function, better to use error_log.
E.g.function cf7_success_page_form_submitted( $contact_form ) { error_log("test"); } add_action( 'wpcf7_mail_sent', 'cf7_success_page_form_submitted' );