Skip to content

Filter Hooks

Frank Bültge edited this page Sep 3, 2015 · 9 revisions

Below you can find all currently available, not deprecated filter hooks

Root plugin file, load all necessary files

defined in multisite-enhancements.php

  1. multisite_enhancements_autoload

    • Filter to reduce the files there load automatically on init of the plugin
    • @type array

Add Favicon, change Admin Bar

defined in inc/autoload/class-add-admin-favicon.php`

  1. multisite_enhancements_sites_limit

    • Filter hook to change the value for get sites inside the network.
    • @type integer
  2. multisite_enhancements_favicon

    • List of hooks, there add the markup of the favicon
    • @type array
  3. multisite_enhancements_add_favicon

    • Change style of the favicon, the string include the css.
    • @type string
  4. multisite_enhancements_add_admin_bar_favicon

    • Change style of the favicon to each site in the Admin Bar menu, the string include the css.
    • @type string
  5. multisite_enhancements_remove_wp_admin_bar

    • Remove or not remove the first part in the admin bar.
    • @type bool
  6. multisite_enhancements_favicon_path

    • Filter the file path to the favicon file.
    • @type string
    • Optional parameters:
      • When using a different directory than the stylesheet use the $blog_id and $path_type
      • @type integer $blog_id
      • @type string $path_type = 'url' -> use URL for the location as a URL
      • @type string $path_type = 'dir' -> use URL for the location in the server, used to check if the file exists