Hide Apply button to Employer
-
I tried this code to job-application. And it doesn’t work.
Please help. Thank You.<?php if ( is_numeric( $user_id ) ) : $user = get_userdata( $user_id );?> //hide the button <?php else : ?> $user = wp_get_current_user(); <?php if ( empty( $user ) ) : <input type="button" class="application_button button" value="<?php _e( 'Apply for job', 'wp-job-manager' ); ?>" /> return in_array( $role, (array) $user->roles ); <?php endif; ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Hide Apply button to Employer’ is closed to new replies.