I have a member site with an admin that have set the standard option. All members can create new polls when ever they like.
But I want to hide some options on the "Add New Yop Poll" page. I see the options in "admin.php". But I can not just remove them since the page function requires the information to create a new poll.
- I want all members to be able to edit "Results Display:" options.
- But I want to hide the option below "Poll Answer Result Label:" (And only use the defalt I have set in options with the admin)
The code is:
<tr> <th> <?php _e( 'Poll Answer Result Label', 'yop_poll' ); ?>: </th> <td><input id="yop-poll-answer-result-label" type="text" name="yop_poll_options[answer_result_label]" value="<?php echo esc_html( stripslashes( $default_options['answer_result_label'] ) ); ?>"/> <small><i><?php _e( 'Use %POLL-ANSWER-RESULT-PERCENTAGES% for showing answer percentages and %POLL-ANSWER-RESULT-VOTES% for showing answer number of votes', 'yop_poll' ); ?></i></small> </td> </tr>
The code starts with <tr> and ends with </tr>. Is there a user setting to hide this part or can I use some PhP hide code on this part? Hide but still set the default value hidden non visible on this page.