ID ); echo"

".$label."

"; } } return $content; } function whatsapp_print_shortcode(){ global $post; $options = get_option('addonist-whatsapp-share-pro'); $license = $options['addonist-whatsapp-share-pro-license_key']; $label = $options['addonist-whatsapp-share-pro-label']; $massage = $options['addonist-whatsapp-share-pro-massage']; $link = get_permalink( $post->ID ); wp_register_style( 'style_css_whatsapp', plugins_url('/css/style.css', __FILE__) ); wp_enqueue_style( 'style_css_whatsapp' ); if(is_rtl()) { wp_register_style( 'rtl_css_whatsapp', plugins_url('/css/rtl.css', __FILE__) ); wp_enqueue_style( 'rtl_css_whatsapp' ); } if(wp_is_mobile() && $massage && $label) { if(isset($_POST['whatsappsend']) &&$_POST['whatsapp_status']==1) echo""; return "
"; } } add_shortcode('addonist_whatsapp', 'whatsapp_print_shortcode');