Celebrate WordCamp Asia! - 30% OFF with coupon WC30 at checkout - Terms

wsf_settings_static

Description

The wsf_settings_static filter allows you to modify the static output of a setting in the Settings page.

Usage

add_filter( 'wsf_settings_static', 'my_hook_function', 10, 2 );

Parameters

  1. $value String
    The setting static value.
  2. $meta_key String
    The setting meta key.

Example

// Callback function for the wsf_settings_static filter hook
function my_hook_function( $value, $meta_key ) {
	
	// Your code here ...

	// Return value
	return $value;
}

// Add a callback function for the wsf_settings_static filter hook
add_filter( 'wsf_settings_static', 'my_hook_function', 10, 2 );

Source File

This hook can be found in: <plugin root>/admin/partials/ws-form-settings.php