bws_add_editor_buttons

The Google Sitemap by BestWebSoft bws add editor buttons function.

Description

bws_add_editor_buttons(); 

Usage

  1. if ( !function_exists( 'bws_add_editor_buttons' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-sitemap-by-bestwebsoft/bws_menu/bws_functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bws_add_editor_buttons(); 
  7.  

Defined (1)

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

/bws_menu/bws_functions.php  
  1. function bws_add_editor_buttons() { 
  2. global $bws_shortcode_list, $wp_version; 
  3. if ( $wp_version < '3.3' ) 
  4. return; 
  5. if ( ! empty( $bws_shortcode_list ) && current_user_can( 'edit_posts' ) && current_user_can( 'edit_pages' ) ) { 
  6. add_filter( 'mce_buttons', 'bws_register_buttons' );