jetpack_widgets_add_suffix

Add the "(Jetpack)" suffix to the widget names.

Description

jetpack_widgets_add_suffix( (string) $widget_name ); 

Parameters (1)

0. $widget_name (string)
The widget name.

Usage

  1. if ( !function_exists( 'jetpack_widgets_add_suffix' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/widgets.php'; 
  3.  
  4. // The widget name. 
  5. $widget_name = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = jetpack_widgets_add_suffix($widget_name); 
  9.  

Defined (1)

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

/modules/widgets.php  
  1. function jetpack_widgets_add_suffix( $widget_name ) { 
  2. return sprintf( __( '%s (Jetpack)', jetpack ), $widget_name );