Hooks and Filters Reference

NEO Bootstrap Carousel exposes a small, focused set of hooks so developers can extend it without editing the pluginPluginA package of code that adds features to a WordPress site without altering core files.. All use the nbc_ prefix.

Filters

  • nbc_shortcode_filter – modify the final carousel HTML. See Customize the Carousel Output.
  • nbc_settings_tab_menus – add or change settings page tabs.
  • register_post_type_neo_carousel – modify the CPT arguments before registration.
  • nbc_slide_post_types – change which content types the Posts slide source offers.
  • nbc_post_type_taxonomy – set the taxonomy used by the Specific Category filter for a post type.

Actions

  • nbc_default_configurations – fires on activation to set default options.
  • nbc_settings_tab_section – render the content of a settings tab.
  • nbc_save_setting_sections – save a settings tab’s data.

See Add Custom Slide Sources for a worked example using the last two filters.