#Overview
This function retrieves an option from the WP Fusion settings based on a given settings key.
#Parameters
wpf_get_option( $key, $default = false )
$key
(string) (Required): The settings key to retrieve an option.$default
(string) (Optional): The default value to return if no type is found.
#Return
(mixed) The options value.
#Get the option from a settings key
$option = wpf_get_option( $key );
#Get an option from a settings key, but return a boolean variable if none are found
$option = wpf_get_option( $key, $default = false );
Was this helpful?
Let us know if you liked the post. That’s the only way we can improve.