• Resolved bearshang

    (@bearshang)


    etc.
    I create a plugins,and use psr-4.

    This is my code:

    
    public function __construct()
    {
       add_action( 'comment_post', array( $this, 'show_message_function' ), 99, 2 );
    }
    
    public function show_message_function( $comment_ID, $comment_approved )
    {
        wp_mail( $value, $subject, $body );
    }
    

    But wp_mail not working.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use wp_mail in plugins dir.’ is closed to new replies.