WF,
I'm still not quite sure what exactly about this isn't working..
I'm using 'Wp_UCanHide' which is a simple plugin that is supposed to hide content wrapped in [hide][/hide] tags to unregistered users. I'm, using this at the same time as a job board plugin which doesn't treat the job entries the same as normal posts it seems.
The hide plugin works perfectly in normal posts but when trying to edit the job board plugin manually to include the [hide] tags in part of its output.
Originally the output code was
[high]
<?php apply_filters('the_content', $job['how_to_apply']) ?>
[/high]
I've tried this (and a few others combinations which I think *should* work)
[high]
<?php $text = '[hide]' . apply_filters('the_content', $job['how_to_apply']) . '[/hide]' ?>
<?php apply_filters('WP_uCanHide', $text) ?>
[/high]
Now it must be passing the text through the function as its still displaying the 'How to apply' section, but it still displays when no ones logged in (yes, I've logged out of admin panel and theres no cache).
The hide code checks if user is logged in by using
[high]
if ($user_ID == '')
[/high]
Does anyone have any ideas on how to fix this?
I'm still not quite sure what exactly about this isn't working..
I'm using 'Wp_UCanHide' which is a simple plugin that is supposed to hide content wrapped in [hide][/hide] tags to unregistered users. I'm, using this at the same time as a job board plugin which doesn't treat the job entries the same as normal posts it seems.
The hide plugin works perfectly in normal posts but when trying to edit the job board plugin manually to include the [hide] tags in part of its output.
Originally the output code was
[high]
<?php apply_filters('the_content', $job['how_to_apply']) ?>
[/high]
I've tried this (and a few others combinations which I think *should* work)
[high]
<?php $text = '[hide]' . apply_filters('the_content', $job['how_to_apply']) . '[/hide]' ?>
<?php apply_filters('WP_uCanHide', $text) ?>
[/high]
Now it must be passing the text through the function as its still displaying the 'How to apply' section, but it still displays when no ones logged in (yes, I've logged out of admin panel and theres no cache).
The hide code checks if user is logged in by using
[high]
if ($user_ID == '')
[/high]
Does anyone have any ideas on how to fix this?