Filter: swifty_hide_toolbar

Swifty Site has an option for hiding the toolbar.

By applying this filter you can hide the toolbar when you return true.

Example:

add_filter( 'swifty_hide_toolbar', '__return_true' );

Filter: swifty_update_sitemap_enabled

Swifty Site has an option to prevent the creation of a XML site map which is normally created and updated after changing posts.

By applying this filter you can prevent the creation of it when you return false.

Example:

add_filter( 'swifty_update_sitemap_enabled', '__return_false' );

Filter: swifty_set_area_template_style

Set area template style.
Store a json string with style information for the current page / area / areatemplate
Use the $areaTemplate as ID when $areaName is ‘page’

Example:

  do_action( 'swifty_set_area_template_style', $style, $areaName, $template );

Filter: swifty_get_area_template_style

Look for area template style.
Returns a json string with style information for the current page / area / areatemplate
Use the current page ID when $areaName is ‘page’

Example:

  echo apply_filters( 'swifty_get_area_template_style', '{}', $areaName, $template );

Filter: swifty_auto_page_titles

Swifty Site Designer has an option for turning the auto showing of page titles off. If this option is turned on page titles will not be shown on normal pages (and thus gining the webmaster the freedom to do page titles inside the content themselves).

By applying this filter you can override this setting and force pages to either show or hide the title automatically.

Example:

add_filter( 'swifty_auto_page_titles',  'my_swifty_auto_page_titles', 10, 2 );

function my_swifty_auto_page_titles( $auto_page_titles, $page_id ) {
    if ( … ) {
         return 'show';
    }
    return $auto_page_titles;
}