bp_get_option

  • apply_filters( 'bp_get_option', $value )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 24
       *
       * @uses bp_get_root_blog_id()
       * @param str $option_name The option to be retrieved
       * @param str $default Optional. Default value to be returned if the option isn't set
       * @return mixed The value for the option
       */
      function bp_get_option( $option_name, $default = '' ) {
      	$value = get_blog_option( bp_get_root_blog_id(), $option_name, $default );
      
      	return apply_filters( 'bp_get_option', $value );
      }
      
      /**
       * Save an option
       *
       * This is a wrapper for update_blog_option(), which in turn stores settings data (such as bp-pages)
       * on the appropriate blog, given your current setup.
       *
       * @package BuddyPress
       * @since 1.5
      

Comments are closed.