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

How to add styles in existing function?

Here’s couple of examples on how to add styling to your code. // Method 1. define classes in another variable, then do styling in styles.css $classes=”another-class”; $content .= ” <div id=\”my-id\”class=\”my-class\”> // Method 2. use backslashes to escape double quotes and add id and classes as needed, then do styling in styles.css <h3 class=\”{$classes}\”>stuff</h3> // … Read more