Currently, I am using the below code.
$bcn_breadcrumb_trail = new bcn_breadcrumb_trail();
$bcn_breadcrumb_trail->breadcrumbs = array();
$bcn_breadcrumb_trail->opt = array(
// Options array.
);
$bcn_breadcrumb_trail->fill_REST($post);
$breadcrumb_navxt = new breadcrumb_navxt( $bcn_breadcrumb_trail );
echo $breadcrumb_navxt->display( false, true, false, false, "<li%3\$s>%1\$s</li>\n", "<ul>%1\$s</ul>\n" );
When Options array is empty, it’s throwing error, and the breadcrumb structure is not as per the setting. I tried passing static data in the array, and it’s working fine. That’s why I am looking to get the options to pass them in the function.