• Resolved svenni

    (@svenschaetzl)


    Hello,
    I just discovered that you introduced some months ago 4 new hooks:

    2.8.4 – 8 JANUARY 2023 (FREE) New: Four filter hook postx_loop_author_image_only, postx_loop_author_image, postx_loop_author_icon and postx_loop_author_by added for showcasing extra author

    => Please give examples about how to use them (functions.php) to modify the Author display. Until now we always had to patch “meta.php” to bring in the images of our Authors which was overwritten in every update. This could help solve this problem.

    Thanks!
    Sven

Viewing 3 replies - 1 through 3 (of 3 total)
  • Tonmoy

    (@azimkhan123)

    Hello @svenschaetzl ,

    Thank you for reaching us. Here are the functions:

    Multiple Author display function: 

    apply_filters( ‘postx_loop_author_image_only’, $authorImgOnly, $user_id, $post_id, $className);

    apply_filters( ‘postx_loop_author_image’, $authorImg, $user_id, $post_id, $className);

    apply_filters( ‘postx_loop_author_icon’, $authorIcon, $user_id, $post_id, $className);apply_filters( ‘postx_loop_author_by’, $authorBy, $user_id, $post_id, $className);

    Let me know if that helps.

    Thread Starter svenni

    (@svenschaetzl)

    Hi Tonmoy,

    thank you – this is the first step. An example snippet for each would be helpful, so that is is clear what need to be returned.
    Thanks,

    Sven

    Tonmoy

    (@azimkhan123)

    Hi @svenschaetzl ,

    Unfortunately, we don’t have any ready-made examples to demonstrate this snippet. However, our development team said, in the future, we will be implementing multiple author options inside our plugin.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Please provide example hooks’ is closed to new replies.