Fuse CMS Framework

Actions

Action Parameters Description
Action Parameters Description

fuse_admin_menu

N/A

This action lets you set up any administration menus that are needed.

Filters

Filter Parameters Returns Description
Filter Parameters Returns Description

fuse_css_*item*_dependencies

N/A

N/A

This filter lets you add dependencies to any CSS queue item. This is useful if you need to add a dependency to an item that’s already been registered without specifying your dependency.

fuse_css_fuse_theme_style_dependencies

$dependencies

array

This filter sets up any dependencies for your themes stylesheet. Just add another stylesheet alias to the array and your stylesheet will have this added as a dependency.

fuse_image_sizes

N/A

N/A

Add in any extra image sizes that you want to use for your site. Image sizes are given with Fuse\Setup\Theme\ImageSize objects.

fuse_javascript_*item*_dependencies

N/A

N/A

This filter lets you add dependencies to any JavaScript queue item. This is useful if you need to add a dependency to an item that’s already been registered without specifying your dependency.

fuse_nav_menus

N/A

N/A

Add the navigation menus for your site.

fuse_register_shortcodes

N/A

N/A

This filter is used to register our shortcodes. Add your shortcode classes to this list the register them automatically.

add_filter ('fuse_register_shortcodes', 'my_register_shortcodes');

function my_register_shortcodes ($shortcode_classes) {
    $shortcode_classes [] = new \Fuse\Shortcode\MyShortcode ();
}

fuse_sidebars

$sidebars

array

Add your own sidebars to be registered with the system sidebars.

fuse_taxonomy_*slug*_object_types

N/A

N/A

This filters the object types that are used for the given taxonomy slug.

The following example uses myslug as the taxonomy slug value, and adds this taxonomy to pages and posts.

function add_filter ('fuse_taxonomy_myslug_object_types', 'fuse_myslug_object_types');

function fuse_myslug_object_types ($types) {
    $types [] = 'page';
    $types [] = 'post'

    return $types;
}

fuse_theme_supports

N/A

N/A

Set up your themes supported functionality.

The standard supports declarations are:

array (
    'comment-list',
    'comment-form',
    'search-form',
    'gallery',
    'caption'
 )

You can add to, or remove from, this list as needed.