Hi I’m pretty stuck so any help would be awesome. I edited the plugin and got it almost exactly as I need it except for the input checkboxes with a value. I need the checkboxes to appear for only the user that is allowed to ‘send-new-message’. For the rest of the plugin I managed to work it out by coding like this around the element:
<?php
if ( fep_current_user_can( ‘send_new_message’ ) ) {
echo ‘<div class=”fep-bulk-action”>’;
}
?>
but this is in the ‘template’ file of the plugin and it worked perfectly.
The check box code that’s giving me trouble is in ‘includes’ heres the code (including a the break and case just to give context):
break;
case ‘fep-cb’:
?>
<input type=”checkbox” class=”fep-cb” name=”fep-message-cb[]” value=”<?php echo fep_get_the_id(); ?>” />
<?php
break;
case ‘author’:
how do I add:
if ( fep_current_user_can( ‘send_new_message’ ) ) {
echo
without losing the ‘value’ or the functionality of the checkboxes?
see attached for how it looks now. the ‘what subscriber sees’ screenshot is what where I want those checkboxes to the left to be removed
Thanks for your time
Attachments:
You must be
logged in to view attached files.