@bbbbho – You will need to find a way to apply their filter to pum_popup_content as well as the_content. We can’t use the_content because it ends up adding extra erroneous content to the popup.
Since they want you to apply a custom filter you would need to write a custom filter for pum_popup_content that applies their filter to the popups content.
Hope that helps.
Thread Starter
bbbbho
(@bbbbho)
Hi @danieliser,
can you elaborate a bit more this?
so instead of hooking up to the_content, i should hook it to pum_popup_content because thats the one popup-maker uses?
Do you mind to share how to write a custom filter?
Brian
@bbbbho – You don’t need to write a custom filter.
They currently do something like
add_filter( 'the_content', 'their_custom_filter_function_name', 100 );
You need to find that and copy it to your theme changing only the first part.
add_filter( 'pum_popup_content', 'their_custom_filter_function_name', 100 );
Hope that helps.
Thread Starter
bbbbho
(@bbbbho)
Hi,
Here’s what i have done.
I added add_filter( 'pum_popup_content', 'as3cf_filter_post_local_to_s3', 100 );
to my theme function.php.
However, the hook doesn’t seem to be working.