*/ class Simple_Job_Board_Applicants { /** * Initialize the class and set its properties. * * @since 1.0.0 */ public function __construct() { // Hook -> Job Applicants Data add_action('edit_form_after_title', array($this, 'jobpost_applicants_detail_page_content')); } /** * Create Detail Page for Applicants * * @since 1.0.0 */ public function jobpost_applicants_detail_page_content() { global $post; if (!empty($post) and 'jobpost_applicants' === $post->post_type): $keys = get_post_custom_keys($post->ID); /** * Fires before displaying the applicant details * * @since 2.2.0 */ do_action('sjb_applicants_details_before', $post->ID); ?>
| ' . ucwords(str_replace('_', ' ', substr($key, 7))) . ' | ' . get_post_meta($post->ID, $key, TRUE) . ' |
| ' . ucwords(str_replace('_', ' ', substr($key, 7))) . ' | '; $count = sizeof($values); foreach ($values as $val): echo esc_attr($val); if ($count > 1) { echo ', '; } $count--; endforeach; echo ' |
| ' . ucwords(str_replace('_', ' ', substr($key, 7))) . ' | ' . get_post_meta($post->ID, $key, TRUE) . ' |