Title: Wrong URLs
Last modified: January 25, 2022

---

# Wrong URLs

 *  Resolved [Maya](https://wordpress.org/support/users/tdgu/)
 * (@tdgu)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wrong-urls-2/)
 * Hello,
    I’m the developer of WP Hide plugin [https://wordpress.org/plugins/wp-hide-security-enhancer/](https://wordpress.org/plugins/wp-hide-security-enhancer/)
   We came across an issue with your plugin, since customizing URLs through the 
   WP Hide (e.g. the default uploads ), they are saved that way by your code, within
   the database. The WP Hide include a special internal tool to revert the data 
   before being saved within the database, still in your case as you use base64_encode
   for all options, that will not make a match. Do you know a way to make it compatible,
   maybe remove the base64_encode usage, as I really don’t see the point using it?
   You already run serialize. Or add a filter on your ad-inserter.php before line
   7490 `ai_save_options ($ai_options, $multisite_options)` which we can use in 
   our site to create a compatibility routine.
 * Thanks
    -  This topic was modified 4 years, 4 months ago by [Maya](https://wordpress.org/support/users/tdgu/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wrong-urls-2/#post-15289596)
 * Hello,
 * the plugin encodes the settings as this is the only way to preserve the block
   code during export/import of database options. In the past we had many issues
   in this regard.
 * But a filter can be added.
 * There is already an filter in ad-inserter.php before line 7405:
    `$ai_options
   = apply_filters ('ai_save_settings', $ai_options);` It can be used to process
   site settings when the user saves them via the settings page.
 * However, line 7490 is not a good place for a filter for your cases as ai_save_options
   is called from different places.
 * I put them in the ai_save_options function. However, we need to be careful there.
   The pro plugin can manage settings on a remote site. So we can have 4 possible
   combinations regarding your plugin (installed on local, installed on remote website)
 * I put the following two filters before the options are actually saved locally–
   check the latest development version:
 *     ```
         $options           = apply_filters ('ai_save_options',           $options);
         $multisite_options = apply_filters ('ai_save_multisite_options', $multisite_options);
       ```
   
 * Please note that `$multisite_options` can be null (when not used).
 * Please briefly explain how your plugin works so I can check for possible issues.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/wrong-urls-2/#post-15296679)
 * Any feedback?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Wrong URLs’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/wrong-urls-2/#post-15296679)
 * Status: resolved