Regex unload
-
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
andedit&lang=es
oredit&lang=br
etcExample:
post.php?post=21197&action=edit&lang=es
And exclude for posts view of specific cpts:
edit.php
andpost_type=cpt-pages
and&lang=es
or&lang=br
etcExample:
edit.php?post_type=cpt-pages&lang=es
- The topic ‘Regex unload’ is closed to new replies.