Support » Plugins » Help with apply_filters() and hook functions

  • I found the below two functions/hooks to add a custom field to my gallery window. It seems to work, but I am now having issues getting the meta info and adding it to my post. I was thinking I could use apply_filters() functions, but am not quite sure on the parameters I need to use.

    I was thinking something like this, but it is not right.

    $imageLink = apply_filters('_rt-image-link', $attachment->_rt-image-link);

    Any help would be greatly appreciated!!!

    Here are the two functions that I added to my functions.php file.

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Help with apply_filters() and hook functions’ is closed to new replies.