Title: DanielBachmann's Replies | WordPress.org

---

# DanielBachmann

  [  ](https://wordpress.org/support/users/danielbachmann/)

 *   [Profile](https://wordpress.org/support/users/danielbachmann/)
 *   [Topics Started](https://wordpress.org/support/users/danielbachmann/topics/)
 *   [Replies Created](https://wordpress.org/support/users/danielbachmann/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/danielbachmann/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/danielbachmann/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/danielbachmann/engagements/)
 *   [Favorites](https://wordpress.org/support/users/danielbachmann/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Iconize] Unable to add custom font succesfully](https://wordpress.org/support/topic/unable-to-add-custom-font-succesfully/)
 *  Thread Starter [DanielBachmann](https://wordpress.org/support/users/danielbachmann/)
 * (@danielbachmann)
 * [4 years ago](https://wordpress.org/support/topic/unable-to-add-custom-font-succesfully/#post-15812561)
 * I solved it for now:
 * When downloading from Fontello the suggested file name is fontello-<somehash>.
   zip.
    When uploading with this file name Iconize creates some files and classes
   with that hash and some without which breaks things.
 * Easiest solution and working for me now: just rename the file downloaded from
   Fontello as “fontello.zip”
 * P.S.: Codewise this probably is one of the cleanest plugins I ever seen, considering
   the complex UI, which helped me immensly to fix my problem.
    Awesome work, useful
   plugin
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WordPress Social Login] [HELP] How can I "override" the pluggable functions](https://wordpress.org/support/topic/help-how-can-i-override-the-pluggable-functions/)
 *  Thread Starter [DanielBachmann](https://wordpress.org/support/users/danielbachmann/)
 * (@danielbachmann)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/help-how-can-i-override-the-pluggable-functions/#post-6929289)
 * Ok I found a solution on this thread:
 * [https://wordpress.org/support/topic/how-to-change-plugins-load-order](https://wordpress.org/support/topic/how-to-change-plugins-load-order)
 * Basically jsdalton (bless him) suggests manipulating the array saved as the option“
   active_plugins” and writing it back. The code from above mentioned thread:
 *     ```
       function this_plugin_first() {
       	// ensure path to this file is via main wp plugin path
       	$wp_path_to_this_file = preg_replace('/(.*)plugins\/(.*)$/', WP_PLUGIN_DIR."/$2", __FILE__);
       	$this_plugin = plugin_basename(trim($wp_path_to_this_file));
       	$active_plugins = get_option('active_plugins');
       	$this_plugin_key = array_search($this_plugin, $active_plugins);
       	if ($this_plugin_key) { // if it's 0 it's the first plugin already, no need to continue
       		array_splice($active_plugins, $this_plugin_key, 1);
       		array_unshift($active_plugins, $this_plugin);
       		update_option('active_plugins', $active_plugins);
       	}
       }
       add_action("activated_plugin", "this_plugin_first");
       ```
   
 * As I only need to load my manipulation before ‘WordPress Social Login’ I intend
   to adjust above function accordingly.
    However to make this work you still have
   to code it like this:
 *     ```
       if(!function_exists(wsl_render_redirect_to_provider_loading_screen))
       {
           function wsl_render_return_from_provider_loading_screen([...] )
           {
               [...]
           }
       }
       ```
   
 * That is before the plugin overiding the function is activated you allready have
   the function defined from WSL and the hack only fires on succesfull activation.
 * Hope this helps someone else in my situation.

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