xclusive_ims_breadcrumbs

Description

The “xclusive_ims_breadcrumbs” filter allows to modify the default breadcrumb links. Version 1.1.0+.

A plugin (or theme) can add a filter with the code:

<?php add_filter( 'xclusive_ims_breadcrumbs', 'filter_function_name' ); ?>

The hook is located in the _inc/ims-store.php file.

Example

// apply filter
function filter_xclusive_ims_breadcrumbs( $breadcrumbs, $separator) {
$breadcrumbs[] = '
  • ' . $separator . '
  • '; $breadcrumbs[] = '
  • ' . __('Link text') . '
  • '; return $breadcrumbs; } add_filter('xclusive_ims_breadcrumbs', 'filter_xclusive_ims_breadcrumbs', 20, 2 );

    Note: $breadcrumbs is a array, $separator is a string.


    Comments

    Leave a Reply

    Your email address will not be published. Required fields are marked *