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?

Our Black Friday Sale is Here! 🎉

Take advantage of the biggest discount we’ve ever offered. Save 30% off new licenses and upgrades.

Days
Hours
Minutes
Seconds
Sorry, this offer has expired.

Valid until Tuesday December 2nd.
See Terms and Conditions