bws_add_settings_link

The Bootstrap Widget Styling bws add settings link function.

Description

bws_add_settings_link( $actions, $file ); 

Parameters (2)

0. $actions
The actions.
1. $file
The file.

Usage

  1. if ( !function_exists( 'bws_add_settings_link' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bootstrap-widget-styling/includes/bws-options.php'; 
  3.  
  4. // The actions. 
  5. $actions = null; 
  6.  
  7. // The file. 
  8. $file = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bws_add_settings_link($actions, $file); 
  12.  

Defined (1)

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

/includes/bws-options.php  
  1. function bws_add_settings_link( $actions, $file ) { 
  2. if ( false !== strpos( $file, BWS_PLUGIN_SLUG ) ) { 
  3. $options_url = admin_url( 'options-general.php?page=bws_options_page' ) ; 
  4. $actions[ 'settings' ] = "<a href='{$options_url}'>Settings</a>" ; 
  5. return $actions ;