Forcer la redirection inscription vers la page Se connecter

function custom_redirect_app_pages() { // Vérifiez si l’URL actuelle correspond à ‘app/register-2’ ou ‘app/activate’ $request_uri = $_SERVER[‘REQUEST_URI’]; if (strpos($request_uri, ‘/app/register-2’) !== false || strpos($request_uri, ‘/app/activate’) !== false) { // Rediriger vers la nouvelle URL wp_redirect(‘https://francodeal.com/se-connecter-sur-mon-espace-fd/’); exit(); } } add_action(‘template_redirect’, ‘custom_redirect_app_pages’);Continue reading

Change Validation Messages for Required Fields – WPML

/** * Customize strings for WPForms form validation * * @link https://wpforms.com/developers/change-validation-messages-for-wpml/ */ function wpforms_dev_frontend_strings( $strings ) { $currentLanguage = defined( ‘ICL_LANGUAGE_CODE’ ) ? ICL_LANGUAGE_CODE : null; switch ( $currentLanguage ) { case ‘fr’: $strings[ ‘val_required’ ] = ‘Ce champ…Continue reading

Duplicate Post/Page Link (copy)

// Add duplicate button to post/page list of actions. add_filter( ‘post_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); add_filter( ‘page_row_actions’, ‘wpcode_snippet_duplicate_post_link’, 10, 2 ); // Let’s make sure the function doesn’t already exist. if ( ! function_exists( ‘wpcode_snippet_duplicate_post_link’ ) ) { /** *…Continue reading

Do not cache events

/** * Force no-cache via HTTP headers. */ function my_no_cache_headers() { // Use WordPress core helper to set typical no-cache headers: nocache_headers(); // Or you could manually set them if needed: // header( ‘Cache-Control: no-store, no-cache, must-revalidate, max-age=0’ ); //…Continue reading