Possible to use filters with “My Custom Functions”?
-
Trying to use the My Custom Functions to define a filter.
I’ve tested successfully that the filter is actually called.
add_filter('og_image_init', 'my_og_image_init'); function my_og_image_init($images) { if ( is_front_page() || is_home() ) { $images[] = 'https://www.example.org/myimage.jpg'; } return $images; }
Still, even after clearing my PHP and browser cache, I see no change in the image on the resulting page.
My question:
Is it possible that setting filters is only supported if I really do modify the “functions.php” file, or do I have a chance to use filters through the “My Custom Functions” plug-in, too?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Possible to use filters with “My Custom Functions”?’ is closed to new replies.