• Resolved Kalusha

    (@kalusha)


    Hello,

    I have add this function to my functions.php but since the last Update it doesn´t work. Before it works well.

    Any Idea???

    add_action( ‘user_register’, ‘fep_cus_user_register_send_messaage’, 10, 1 );

    function fep_cus_user_register_send_messaage( $user_id ){
    if ( $user_id < 1 )
    return;
    if ( ! function_exists( ‘fep_send_message’ ) )
    return;

    // Prepare message data
    $message = array(
    ‘message_title’ => ‘Willkommen ‘ . fep_get_userdata( $user_id, ‘display_name’, ‘id’ ), //change with message title
    ‘message_content’ => ‘Das hier ist dein persönliches Postfach auf

    Message…..’, //change with message content
    ‘message_to_id’ => $user_id
    );

    $override = array(
    ‘post_author’ => 1, //change with message sender id
    );

    // Send message
    fep_send_message( $message, $override );
    }

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shamim Hasan

    (@shamim51)

    This plugin update or wordpress core update? updated from which version?
    Try enable debug and create a new account for testing. Showing any error?
    Is there any error in server log?

    Thread Starter Kalusha

    (@kalusha)

    Since 27.02.2018.
    Sorry I see no errors.
    Is the code right? I had problems with my functions.php and have change anything but I don´t know what:(

    I have also this code in my functions.php and that works well

    #Nachrichten bbpress front end

    add_action( ‘bbp_theme_after_reply_author_details’, ‘fep_bbp_theme_after_reply_author_details’ );

    function fep_bbp_theme_after_reply_author_details() {

    $user_nicename = get_the_author_meta(‘user_nicename’);

    if( ! $user_nicename || ! fep_current_user_can(‘send_new_message_to’, $user_nicename ) ){
    return ”;
    }
    ?>
    <div class=”fep-bp-send-message”><?php echo do_shortcode( “[fep_shortcode_message_to class=’fep-bp-send-message-a’ text=’Nachricht senden’]”); ?></div>

    <?php
    }

    Plugin Author Shamim Hasan

    (@shamim51)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Welcome Message’ is closed to new replies.