The Jetpack by jetpack widget visibility more info function.




  1. if ( !function_exists( 'jetpack_widget_visibility_more_info' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/module-info.php'; 
  5. // NOTICE! Understand what this does before running. 
  6. $result = jetpack_widget_visibility_more_info(); 

Defined (1)

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

  1. function jetpack_widget_visibility_more_info() { ?> 
  2. <p><?php esc_html_e( 'Control which pages your widgets appear on with Widget Visibility.', jetpack ); ?></p> 
  3. <p><?php esc_html_e( 'To control visibility, expand the widget and click the Visibility button next to the Save button, and then, choose a set of visibility options.', jetpack ); ?></p> 
  4. <p><?php esc_html_e( 'For example, if you wanted the Archives widget to only appear on category archives anderrorpages, choose "Show" from the first dropdown and then add two rules: "Page is 404 Error Page" and "Category is All Category Pages."', jetpack ); ?></p> 
  5. <p><?php esc_html_e( 'You can also hide widgets based on the current page. For example, if you don\'t want the Archives widget to appear on search results pages, choose "Hide" and "Page is Search results."', jetpack ); ?></p> 
  6. <?php