Instantly share code, notes, and snippets.

Embed
What would you like to do?
Exclude post properties from being overwritten during Advanced Content Templates template load.
<?php // do not include opening PHP tag
// You can put this in your theme's functions.php file
add_filter('act_protected_properties', 'my_protected_properties');
function my_protected_properties($protected_properties) {
$protected_properties[] = 'post_title';
return $protected_properties;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment