Add prepopulated msg link in custom column (backend)
-
I am trying to add a custom column in a custom post (job manager) using the codes below, but the url is always blank ** I am newbie, appreciate any helps.
// Add the custom columns to the job_application post type: add_filter( 'manage_job_application_posts_columns', 'send_message' ); function send_message($columns) { $columns['message'] = 'Message'; return $columns; } // Add the data to the custom columns for the job_application post type: add_action( 'manage_job_application_custom_column' , 'custom_send_message_column', 10, 2 ); function custom_send_message_column( $column, $post_id ) { switch ( $column ) { case 'message' : $recent_author = get_user_by( $post_id, $recent["post_author"] ); $author = $recent_author->user_login; $front_end_msg_url = '<a href="'.fep_query_url('newmessage', array('fep_to' => $author ) ).'">Send Message</a>'; echo $front_end_msg_url; break; } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add prepopulated msg link in custom column (backend)’ is closed to new replies.