-
-
Save clifgriffin/28fbaa5c4eb663ab200e to your computer and use it in GitHub Desktop.
Exclude post properties from being overwritten during Advanced Content Templates template load.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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