• I have been Googling this for about half an hour and feel like I must be making this harder than it needs to be.

    I have a theme that comes with a plugin that creates a slideshow. The problem is the theme/plugin doesn’t use a custom image size that is specific to the slideshow. You have to size the image before you upload it. I don’t want to ask my client to do that. I want them to upload the image and have WP create the appropriate site. So, I added a custom image size but it doesn’t appear anywhere as an option to assign it to the slideshow. I know the custom images are being created because I can see them in the uploads folder.

    I am intentionally not naming the theme or plugin because this is a general question.

    How do I find out if there is a filter applied to the images that are used in the plugin?

    All I want to do is set the image to use my custom image size. Doesn’t seem like it would be that hard if I knew what filter to use. I found a plugin called Simply Show Hooks which shows all the hooks and filters used on a page but it’s a huge list and I can’t if one is used for the slider.

    If there is a tutorial on how to find filters or something like that I’ll take it. But, all the tutorials on using filters just pull one from the WP Codex, which has documentation.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    1) grep the plugin files looking for “do_action” and “apply_filters”

    2) see if your plugin is listed here: https://hookr.io/

    Thread Starter swani

    (@swani)

    Hey Steve,

    Thank you for for the reply. I searched the plugin files for “apply filters” and didn’t get anything that looked right. So, applying the same principle, I searched again for the class name on the div that contains the image and found the file that creates the slides. Here’s the problem, there is no filter there. So, I started looking into how I modify the plugin. I’m going to add this for anyone reading this in the future: There is no equivalent to the child theme idea for plugins.

    So, I have been reading up on “forking” a plugin. This sounds a little intense for my skill level. I’m going to start by contacting the plugin author and ask if they would be willing/able to add some filters. I’ll post back if I press on with the forking option.

    Graham

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Finding a filter in 3rd party plugin’ is closed to new replies.