* @license GPL-2.0+ * @link http://ericfrisino.com * @copyright 2015 Eric Frisino */ /** * this function gathers the custom content entered in * the post and displays it on the front end of the site. * * @var string $abh_gratitude_one Users first daily gratitude. * @var string $abh_gratitude_two Users second daily gratitude. * @var string $abh_gratitude_three Users third daily gratitude. * * @var string $abh_journal Users daily journal entry. * * @var bool $abh_exercise_toggle Did the user exercise today? * @var string $abh_exercise_info Any information the user wants to track about their exercise. * * @var bool $abh_meditation_toggle Did the user meditate today? * @var string $abh_meditation_info Any information the user wants to track about their meditation. * * @var bool $abh_kindness_email_toggle Does the user want to send an email today? * @var string $abh_kindness_email_name Who the email being sent to. * @var string $abh_kindness_email_content The content of the email. * @var bool $abh_kindness_email_show_everyone_toggle Show the email on the front of the site? * If not, it defaults to show to the post author. * * @var bool $abh_kindness_physical_toggle Did the user commit a real life act of kindness? * @var string $abh_kindness_physical_act What did the user do? and any other information about it. */ function abh_insert_custom_post_meta() { // Call $post & $current_user global variables. global $post, $current_user; // Sanitize and populate all custom post meta $abh_gratitude_one = esc_html( get_post_meta( $post->ID, 'abh-gratitude-one', true ) ); $abh_gratitude_two = esc_html( get_post_meta( $post->ID, 'abh-gratitude-two', true ) ); $abh_gratitude_three = esc_html( get_post_meta( $post->ID, 'abh-gratitude-three', true ) ); $abh_journal = wp_kses( get_post_meta( $post->ID, 'abh_journal', true ), '', '' ); $abh_exercise_toggle = get_post_meta( $post->ID, 'abh-exercise-toggle', true ); $abh_exercise_info = esc_textarea( get_post_meta( $post->ID, 'abh-exercise-info', true ) ); $abh_meditation_toggle = get_post_meta( $post->ID, 'abh-meditation-toggle', true ); $abh_meditation_info = esc_textarea( get_post_meta( $post->ID, 'abh-meditation-info', true ) ); $abh_kindness_email_toggle = get_post_meta( $post->ID, 'abh-kindness-email-toggle', true ); $abh_kindness_email_name = wp_kses( get_post_meta( $post->ID, 'abh-kindness-email-name', true ), '', '' ); $abh_kindness_email_content = wp_kses( get_post_meta( $post->ID, 'abh-kindness-email-content', true ), '', '' ); $abh_kindness_email_show_everyone_toggle = get_post_meta( $post->ID, 'abh-kindness-email-show-everyone-toggle', true ); $abh_kindness_physical_toggle = get_post_meta( $post->ID, 'abh-kindness-physical-toggle', true ); $abh_kindness_physical_act = esc_textarea( get_post_meta( $post->ID, 'abh-kindness-physical-act', true ) );?>

Quick do it now, it only takes 5 minutes.', 'abh_trans') ?>

post_author == $current_user->ID ) : ?>