<a href="#" class="" name="" id="" title="" data-th="" data-attr=""></a>
Use fs_omit_obfusquer filter hook to add skipped keys. add_filter('fs_omit_obfusquer', function($a){ $a[]='striA'; $a[]='striB'; $a[]='striC'; $a[]='striD'; return $a; });
Use fs_plugit_obfusquer filter hook to add plugin/theme shortcodes whose content should skip obfuscation. add_filter('fs_plugit_obfusquer', function($a){ $a[]='woocommerce_my_account'; return $a; });
Use fs_restrict_obfusquer filter hook. This example obfuscates only the domain with the given tlds. add_filter('fs_restrict_obfusquer', function(){ return '(.*)medomain\.(ca|co|co.uk|co.jp|com|net|org)+'; });
Define _LICENSE_K and _LICENSE_S constants in configuration file (wp-config.php), OR plugin main file (plugin-name.php), OR theme's functions.php.
define('_LICENSE_K', 'custom_key'); define('_LICENSE_S', 'custom_secret');
The fs_dump_obfusquer action hook add_action('fs_dump_obfusquer', function($args){error_log( print_r( [ 'fs_dump_obfusquer' => $args ], TRUE ), 3, '/home/<your-path-to>/log_file');});
lets you log obfusquerified query strings to file for further observation.
This is useful for resolving HTTP 414 (Request URI Too Large) Errors. Simply observe the culprit key(s) and add any or all of those keys to skip obfuscation.
Use _LICENSE_ constant define('_LICENSE_', true);
to assign the currently obfusquerified string to the custom key. This new assignment will be obfuscated except you skip the custom key.
By default, the custom query key is assigned the last obfusquerified string if additional query strings append to that string (example, using add_query_arg() without its url parameter).
The fs_license_obfusquer filter hook add_filter('fs_license_obfusquer', function(){return 'key';});
sets the custom query key.
The obfusq_loaded action hook add_action('obfusq_loaded', function(){});
is available to execute custom code immediately after Obfusquer is ready.
Note that you will very rarely need to use these features.
Define a custom handler method/function in your code to handle query contexts using the internal fs_context_obfusquer, fs_output_obfusquer and fs_request_obfusquer filters that handle urls pre-flight.
add_filter('fs_context_obfusquer', function($u,$q,$a){return $u;});
to get requested url.add_filter('fs_output_obfusquer', function($q,$a){return $q;});
to get currently obfusquerified string, and add_filter('fs_request_obfusquer', function($a,$s,$o){return $a;});
to get plain query string (example, in url parameter contexts - /?key=0bfvsqu3r1f1eDQv86Y&<skipped-qskey>=<V1>&<other-qskey>=<V2>).
This is especially useful for asynchronous requests and external 3rd-Party api services integration.