• Resolved jozeck

    (@jozeck)


    Is it possible to add a hook on the beginning of fill() method in breadcrumb_navxt_class.php?

    Something like that (lines 882-888):

    function fill()
    {
    global $wpdb, $post, $wp_query, $paged, $page;
    //Do any actions
    do_action(‘bcn_before_trailcheck’, $this);
    //Check to see if the trail is already populated
    if(count($this->trail) > 0)

    This enables to insert customize trail, i.e. for custom post types, plugins etc.

Viewing 1 replies (of 1 total)
  • Plugin Author John Havlik

    (@mtekk)

    There is a hook there, an action hook it is bcn_before_fill. It happens to be called just after the trail size check. Do you need this to happen before the trail size check? Its current location shouldn’t affect most normal use cases (could only be an issue if you have multiple runs of the same instance and want different outputs).

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Breadcrumb NavXT] Add hook just after fill() method invoke’ is closed to new replies.