Support » Plugin: WP SMS » Using WP-SMS on Registration and WooCommerce

  • Dear Mostafa, Hi
    Thanks For your efforts on this plugin
    I need guide on using this plugin preperly
    1- Need to register through the Register Form and I didnt see the “mobile number” in the woocommerce billing form.
    2- can i use the verified users by sms, to auto-complete my WooCommerce orders with verified condition ?


Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mostafa Soufi



    1. Mobile field available on the Pro Pack version.
    2. Unfortunately does not supported.


    Plugin Author Mostafa Soufi


    Hi @prestonc1986,

    Your request is possible. But it must to be customized.

    Is there any way you can help me? Or is that too much customizing? It seems like i am close.

    Plugin Author Mostafa Soufi


    It’s simple way to add new subscribe in WP-SMS. Add the subscriber into database with $wpdb->insert after register.

    Can use this hook:


    • This reply was modified 1 year, 5 months ago by  Mostafa Soufi.

    I am not using the standard WordPress register form…. I am using Woocommerce and Woocommerce has its own registration form… Your mobile number input does not show up in the Woocommerce register form….. Also keep in mind, some people may register after purchasing a product(subscription). When purchasing the product, it asks for billing detail. One of the billing details is *Phone, so in this checkout process, your subscribe mobile number input will not be beneficial.

    How can I change this code to pull in WooCommerce META_VALUES from the META_KEYS of ‘billing_phone’ and ‘billing_first_name’……..FROM the WP_usermeta table?

    function column_default( $item, $column_name ) {
    		switch ( $column_name ) {
    			case 'name':
    			case 'mobile':
    				return $item[ $column_name ];
    			case 'group_ID':
    				return wps_get_group_by_id( $item[ $column_name ] );
    			case 'date':
    				return sprintf( __( '%s <span class="wpsms-time">Time: %s</span>', 'wp-sms' ), date_i18n( 'Y-m-d', strtotime( $item[ $column_name ] ) ), date_i18n( 'H:i:s', strtotime( $item[ $column_name ] ) ) );
    			case 'status':
    				return ( $item[ $column_name ] == '1' ? '<span class="dashicons dashicons-yes wpsms-color-green"></span>' : '<span class="dashicons dashicons-no-alt wpsms-color-red"></span>' );
    			case 'activate_key':
    				return '<code>' . $item[ $column_name ] . '</code>';
    				return print_r( $item, true ); //Show the whole array for troubleshooting purposes

    I have already changed the query up here:
    $this->data = $wpdb->get_results( "SELECT * FROM {$table_prefix}usermeta", ARRAY_A );

    I know I will have to modify SQL query some, but for now that should be fine…..


    I need too.

    Most sites only allow users to register an account with mobile no now, especially shop sites or community and social sites.

    It would be great if it support mobile no register or support woocommerce site register at least by an addon.


    Plugin Author Mostafa Soufi


    I’ll check that.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Using WP-SMS on Registration and WooCommerce’ is closed to new replies.