Hi again Scribu
Can I just check please if the code above, which allows one to limit the FEE to selected categories, is still working in the latest release of FEE? I ask because I'm using it but without success.
The code I'm using is this:
<?php
add_filter('front_ed_allow_post', 'restrict_to_category', 10, 2);
function restrict_to_category($allow, $post_id) {
$allowed_cats = array('Templates', 'Website terms of use');
return $allow && in_category($allowed_cats, $post_id);
}
?>
The theme I'm using is quite complex and has a functions.php file which pulls in a number of functions files from a functions library. The calling code I'm using in the main functions.php file, which follows the same model as for other functions it's pulling in, is as follows:
// Load Front End Editor functions
require_once(WEBTREATS_FUNCTIONS . '/front-page-editor-functions.php');
Do you have any idea please why the code you've provided might not be working?
Any help much appreciated.
Richard