Title: Filter Hooks
Last modified: August 24, 2016

---

# Filter Hooks

 *  [malachite](https://wordpress.org/support/users/malachite/)
 * (@malachite)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/filter-hooks-1/)
 * I can’t get the wpfai_array_filter to work. I think the problem is that portion
   of the plugin loads before my functions.php so that hook never calls my function.
   wpfai_output_filter works great. I really appreciate that you added those hooks.
   Is there something I’m missing with wpfai_array_filter?
 * I ended up working around the issue by manipulating the output. I had two things
   I needed to do:
 * 1. Add a permalink icon to the array (I used fa-link).
    2. Add the social icons
   to a list of posts. I’m using the always essential List Category Posts plugin
   to generate lists of posts. I added the template tag to my List Category Posts
   template but it added the post ID of the parent post instead of the posts I was
   listing. So I took the output and replaced the parent IDs in the links with the
   post IDs I was listing. It would really be nice if I could pass my post ID to
   the template tag.
 * Thanks for a great plugin. Just to be clear, I have working code so you can make
   what you will of all this and I have no urgent questions.
 * [https://wordpress.org/plugins/wp-font-awesome-share-icons/](https://wordpress.org/plugins/wp-font-awesome-share-icons/)

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

 *  Plugin Author [Nitroweb](https://wordpress.org/support/users/spyrosvl/)
 * (@spyrosvl)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/filter-hooks-1/#post-6076514)
 * Hello malachite,
 * Thank you for the feedback.
    If you put the filter after every `$wpfai_socialmedia
   = wpfai_socialmedia();`, eg:
 *  `$wpfai_socialmedia = wpfai_socialmedia();
    $wpfai_socialmedia = apply_filters(‘
   wpfai_array_filter’, $wpfai_socialmedia );`
 * is this working for you? If it does I will just copy this line in 3 more places(
   lines 175, 523, 739) and the problem will be solved.
 * I am planning a new release today/tomorrow, so maybe I can fix this issue with
   your help!
 * Best regards,
    Spyros
 *  Thread Starter [malachite](https://wordpress.org/support/users/malachite/)
 * (@malachite)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/filter-hooks-1/#post-6076679)
 * I’m not seeing any wpfai_socialmedia() function in my copy of the plugin and 
   the wp-font-awesome-share-icons.php file only has 481 lines. Am I missing something
   obvious?

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

The topic ‘Filter Hooks’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-font-awesome-share-icons_ffffff.
   svg)
 * [WP Font Awesome Share Icons](https://wordpress.org/plugins/wp-font-awesome-share-icons/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-font-awesome-share-icons/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-font-awesome-share-icons/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-font-awesome-share-icons/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-font-awesome-share-icons/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-font-awesome-share-icons/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [malachite](https://wordpress.org/support/users/malachite/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/filter-hooks-1/#post-6076679)
 * Status: not resolved