Support » Plugin: WP Font Awesome Share Icons » Filter Hooks

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nitroweb


    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,

    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.