• How can I unload on all pages expect including strings.

    wpml-string-translation is one of the slowest plugins there hammer with queries and slows down several o wp-admin pages. But realized I need it to let it run on some places to properly translate the slug for %cpt% in wp admin once clicking on view post.

    Want to unload Plugin: wpml-string-translation on:

    #^/admin/post.php#
    #^/admin/edit.php#

    But exclude and not unload if url contains
    post.php and edit&lang=es or edit&lang=br etc

    Example: post.php?post=21197&action=edit&lang=es

    And exclude for posts view of specific cpts:
    edit.php and post_type=cpt-pages and &lang=es or &lang=br etc

    Example: edit.php?post_type=cpt-pages&lang=es

    • This topic was modified 2 years, 9 months ago by Rookie.
  • The topic ‘Regex unload’ is closed to new replies.