Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eri-trabiccolo/35eb5c0d8e2fdb49e5186ff794767aa7 to your computer and use it in GitHub Desktop.
Save eri-trabiccolo/35eb5c0d8e2fdb49e5186ff794767aa7 to your computer and use it in GitHub Desktop.
Remove unwanted slashes added to the access plan description
<?php // Do not copy this line
// Copy from under this line and paste into your child theme's functions.php
$unslash_iterarions = 2; //at least 2 times
for ( $i = 1; $i <= $unslash_iterarions; $i++ ) {
add_filter( 'llms_access_before_save_plan', 'wp_unslash', $i );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment