wpf_get_option()

#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?