• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Genesis Theme Framework a2z

Genesis Theme Framework a2z

WordPress Dynamic API Reference

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / genesis_breadcrumb_options_enabled() – Gets breadcrumb options that are enabled in Genesis settings.

You appear to be a bot. Output may be restricted

Description

Gets breadcrumb options that are enabled in Genesis settings.

Usage

$array = genesis_breadcrumb_options_enabled();

Parameters

Returns

array The breadcrumb options that are enabled.

Source

File name: genesis/lib/functions/breadcrumb.php


Lines:

1 to 14 of 14
function genesis_breadcrumb_options_enabled() {
  $genesis_options = get_option( GENESIS_SETTINGS_FIELD );

  $active_breadcrumb_types = array_filter(
    $genesis_options,
    function ( $value, $option_name ) {
      return strpos( $option_name, 'breadcrumb_' ) === 0 && $value;
    },
    ARRAY_FILTER_USE_BOTH
  );

  return array_keys( $active_breadcrumb_types );
}
 

Published: 25th November 2019 | Last updated: 25th November 2019

Primary Sidebar

Information

Function name: genesis_breadcrumb_options_enabled
Plugin ref: Genesis Framework
Version: 3.3.3
Sourcefile: lib/functions/breadcrumb.php
File ref: lib/functions/breadcrumb.php
Deprecated?: No
API Letters: B,E,G,O

Footer

Genesis a2z
Genesis Theme Framework a2z
WordPress Dynamic API Reference
WordPress 5.6
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  genesis.wp-a2z.org
© Copyright Genesis a2z 2014-2021. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites