Home / Admin / Whitelist Callback Functions for use in Theme Elements
Duplicate Snippet

Embed Snippet on Your Site

Whitelist Callback Functions for use in Theme Elements

Various elements in the Total theme allow you to select a callback function for the output or query. Before you can choose your custom callback functions you will need to whitelist them for security reasons. You can whitelist your callback functions using the VCEX_CALLBACK_FUNCTION_WHITELIST constant and returning an array of your custom callback functions.

Code Preview
php
<?php
define( 'VCEX_CALLBACK_FUNCTION_WHITELIST', [
    'my_custom_function_name_1',
    'my_custom_function_name_2',
    'my_custom_function_name_3',
] );

Comments

Add a Comment