Helper

This component acts as a proxy for all the HivePress helper functions defined in the includes/helpers.php file. With the Helper component, you can call a helper function anywhere in the code without declaring the PHP namespace. For example, the code below calls the sanitize_html helper that removes malicious HTML tags.

hivepress()->helper->sanitize_html( 'custom HTML content' );

Last updated