Changing author links on homepage to buddypress profiles – without affecting ability to link to author archive throughout the site

Rather than add your filter immediately when the functions.php file loads, find actions that you can hook onto later, when you know the context of the current request, so you can add and remove filters in a targeted way. For example, you might be able to use loop_start to only affect WPBakery output in the … Read more

function replace_text for entire page

The reason is to change image urls from site.com/wp-content/uploads to static.site.com. Cdn plugins change to static.site.com/wp-content/uploads so i can not use them. I think it’s better to update the database content instead of replacing strings in each page-load. Check this easy DB replacement tool: https://github.com/interconnectit/Search-Replace-DB Keep in mind to remove it after you’ve done your … Read more

Override plugin function to show invoices even if not logged in

Try to remove the plugin function from the filter. Are you sure the plugin function and the filter have the same name! *You will need to know the priority that the plugin function is using to use it in remove_filter, I will assume It’s the default (10). remove_filter( ‘print_document_action’, ‘print_document_action’, 10 ); Then add your … Read more

what is `get_section()` and how to use it?

If you check the code reference entry for get_section(), you can see its description: Retrieve a customize section. “customize” means the customizer, the theme handbook has a complete chapter for using the customizer API, and one paragraph explaining sections: Sections are UI containers for Customizer controls. While you can add custom controls to the core … Read more