bp_use_wp_admin_bar

  • apply_filters( 'bp_use_wp_admin_bar', defined( 'BP_USE_WP_ADMIN_BAR' ) && BP_USE_WP_ADMIN_BAR )

    Source Reference:

    • Component: BuddyPress :: bp-core
      File: /bp-core/bp-core-functions.php :: Trac Source Line: 1301
       * default.
       *
       * @package BuddyPress
       * @since 1.5
       *
       * @uses apply_filters() Filter 'bp_use_wp_admin_bar' to alter
       * @return bool False when WP Admin Bar support is disabled (default); true when enabled
       */
      function bp_use_wp_admin_bar() {
      	return apply_filters( 'bp_use_wp_admin_bar', defined( 'BP_USE_WP_ADMIN_BAR' ) && BP_USE_WP_ADMIN_BAR );
      }
      
      /**
       * Are oembeds allowed in activity items?
       *
       * @return bool False when activity embed support is disabled; true when enabled (default)
       * @since 1.5
       */
      function bp_use_embed_in_activity() {
      	return apply_filters( 'bp_use_oembed_in_activity', !defined( 'BP_EMBED_DISABLE_ACTIVITY' ) || !BP_EMBED_DISABLE_ACTIVITY );
      

Comments are closed.