• Resolved atzimpourdakas

    (@atzimpourdakas)


    I want to subscribe an email via functions.php.

    I found this page in your website but I cant do it to work.

    The part “sbscrbr_checkbox_add” worked for me.

    but the “sbscrbr_checkbox_check” didnt work.

    if ( isset( $_POST['submit'] ) && has_filter( 'sbscrbr_checkbox_check' ) ) {
     $sbscrbr_check = apply_filters( 'sbscrbr_checkbox_check', array(
     'email' => isset( '[email protected]' ? '[email protected]' : ''
     ) );
       if ( isset( $sbscrbr_check['response'] ) ) {
         echo $sbscrbr_check['response']['message'];
       }
    }

    I am searching for a filter that takes a specific email and adds it to “jl_sndr_mail_users_info” table in database.

    For exaple I need something like:

    $sbscrbr_check = apply_filters( 'sbscrbr_checkbox_check', array(
     'email' => isset( '[email protected]' ? '[email protected]' : ''
     ) );

    Please help!

Viewing 1 replies (of 1 total)
  • Plugin Support andrewsupport

    (@andrewsupport)

    Hi,

    Unfortunately, we do not claim compatibility of Subscriber by BestWebSoft with the Woocommerce plugin. We will consider it, and if we deem it necessary, we will make the necessary changes to the plugin.

Viewing 1 replies (of 1 total)
  • The topic ‘Add subscriber from php’ is closed to new replies.