Jetpack_Share_WhatsApp

The WordPress Core Jetpack Share WhatsApp class.

Defined (1)

The class is defined in the following location(s).

/modules/sharedaddy/sharing-sources.php  
  1. class Jetpack_Share_WhatsApp extends Sharing_Source { 
  2. public $shortname = 'jetpack-whatsapp'; 
  3.  
  4. public function __construct( $id, array $settings ) { 
  5. parent::__construct( $id, $settings ); 
  6.  
  7. public function get_name() { 
  8. return __( 'WhatsApp', 'jetpack' ); 
  9.  
  10. public function get_display( $post ) { 
  11. return $this->get_link( 'whatsapp://send?text=' . rawurlencode( $this->get_share_title( $post->ID ) ) . ' ' . rawurlencode( $this->get_share_url( $post->ID ) ), _x( 'WhatsApp', 'share to', 'jetpack' ), __( 'Click to share on WhatsApp', 'jetpack' ) );