My Account Customizer - WPML Sticky Link exclusion doesn't work

Issue #15 resolved
Simon Gevcen | Jeriss Cloud Center ™ created an issue

I tried this feature but it doesn’t work unfortunately.

After enabling the setting, I go to any page, I create a simple Text with URL Link like below

https://wordpress-573315-3867085.cloudwaysapps.com/mon-compte/demander-une-carte-de-sortie/

but then after saving the page, the URL still goes to a PageID.

While if I enter in my functions.php, the code I’ve provided you before, then after page saving, it remains URL (not PageID).

/**

  • WPML - AVOID STICKY LINKS FROM TRANSFORMING CERTAIN URLS
    */
    add_filter( 'wpml_sl_blacklist_requests', 'wpml_sl_blacklist_requests', 10, 2 );

function wpml_sl_blacklist_requests( $blacklist, $sitepress ) {
$blacklist[] = 'mon-compte/lost-password';
$blacklist[] = 'mon-compte/custom-endpoint-261885';
$blacklist[] = 'mon-compte/custom-endpoint-846581';
return $blacklist;
}

Comments (5)

  1. woomatrix support repo owner

    looks like this part https://prnt.sc/47uwZDJuXr0K seems to be creating the issue. existing code supposed to work where my account slug is my-account in your case mon-compte so obviously it is not working. it will be fixed tomorrow.

  2. Simon Gevcen | Jeriss Cloud Center ™ reporter

    Great, thanks.

    It’s so much easier to raise issues on a thread system like here, instead of emails … You should force all your customers to only raise issues on this repository.

    You should avoid getting emails. It would make your life (and your users' life) so much easier to handle any bug, feedback or comment.

  3. Log in to comment