You can find all the files and functions we included for use in a standard WordPress installation (without WooCommerce) under /vendors/frankfurt/. Specifically, there are the following filter options:

This function displays the logo at the top left. This filter option allows its manipulation.

frankfurt_get_logo

This is a return filter and is executed, once all important parts of the function are completed.

Parameter:
  • string $default – The HTML code of the standard logo

PermalinkPingbacks

The actual function is used for displaying the favicons of the web pages, for which a pingback exists to a specific post.

pre_frankfurt_get_external_favicon

This pre-filter bypasses the function. With it, the entire function can be bypassed.

Parameter:
  • boolean FALSE – This parameter checks, whether the function is being bypassed
  • array $args – This array contains all arguments, which are handed over via the parameters of the function.
  • array $default_args – This array contains all the standard arguments we have specified. These values are:
    • string url – The URL of the page with the pingback
    • string class – The CSS class used
    • integer size – The size of the icon
    • string alt – The alt text of the image

frankfurt_get_external_favicon_args

This filter is executed, once the arguments from the $args array and the $default_args array have been consolidated. This is the last chance to manipulate the arguments, before the actual function is executed.

Parameter:
  • array $args – The consolidated arguments

frankfurt_get_external_favicon

This is a return filter and is executed, once all important parts of the function are completed.

Parameter
  • string $output – This is the final <img alt="" /> element with the favicon
  • array $args – The arguments that were actually used

PermalinkFavicon

This function downloads the favicon from the relevant asset folder.

frankfurt_get_favicon

This is a return filter, and contains the finished markup of the favicon.

Parameter
  • string $markup – The finished markup of the favicon.
  • string $favicon_uri – The URL for the favicon used
  • string $asset_dir – The relative path to the folder containing the assets.
  • string $favicon_name – The file name of the favicon

PermalinkSocial share buttons

Social buttons for easy sharing of the links to individual posts with social networks are displayed under each post. Frankfurt offers prefabricated links for Facebook, Google+, and Twitter as standard. These share buttons can be expanded as needed.
The icon font “FontAwesome” is used for the actual icons. You will find a complete list of the brand icons in their relevant documentation.

pre_frankfurt_get_social_share_links

This pre-filter bypasses the function. With it, the entire function can be bypassed.

Parameter
  • boolean FALSE – This parameter checks, whether the function is being bypassed
  • array $args – This array contains all arguments, which are handed over via the parameters of the function.
  • array $default_args – This array contains all the standard arguments we have specified. These values are:
    • string before – Markup, which is output first
    • string after – This markup is output last
    • string before_link – Another markup can be output before each link
    • string after_link – And also after each link
    • string link – The markup of the actual link
  • array networks – This array contains other arrays with the social networks to which the link can be shared. These arrays contain the following values:
    • string name – Name of the social network
    • string link – The exact link for sharing a URL
    • string class – The FontAwesome class used

frankfurt_get_social_share_links_args

This filter is executed, once the arguments from the $args array and the $default_args array have been consolidated. This is the last chance to manipulate the arguments, before the actual function is executed.

Parameter
  • array $args – The consolidated arguments

frankfurt_get_social_share_links

This is a return filter and is executed, once all important parts of the function are completed.

Parameter
  • string $markup – The final HTML list of social networks
  • array $args – The arguments that were actually used
Code-Example: Hide social share buttons

If you want to hide the social share buttons on certain pages, please use the following function and filter in the functions.php of your child theme:

You need to edit the page slugs to be excluded in the code above.
To hide the social share buttons on all pages, just replace the content of the function with a return;

PermalinkBreadcrumbs

As is popular on many websites, Frankfurt also offers the option to display a breadcrumb navigation. This option is enabled by default. The markup can be manipulated using filters.

pre_frankfurt_get_breadcrumbs

This pre-filter bypasses the function. With it, the entire function can be bypassed.

Parameter
  • boolean FALSE – This parameter checks, whether the function is being bypassed
  • array $args – This array contains all arguments, which are handed over via the parameters of the function.
  • array $default_args – This array contains all the standard arguments we have specified. These values are:
    • string before – The markup output before the navigation
    • string after – The markup output after the navigation
    • string standard – The standard element
    • string current – The current standard element
    • string link – The markup of the link
    • boolean show_home_link – Checks, whether the homepage should be displayed
    • string home_text – The text for the link to the homepage

frankfurt_breadcrumbs_args

This filter is executed, once the arguments from the $args array and the $default_args array have been consolidated. This is the last chance to manipulate the arguments, before the actual function is executed.

Parameter
  • array $args – The consolidated arguments

frankfurt_breadcrumbs

This is a return filter and is executed, once all important parts of the function are completed.

Parameter
  • string $markup – The final HTML list of the social breadcrumbs
  • array $args – The arguments that were actually used
  • array $breadcrumbs – All individual breadcrumbs

PermalinkSection Title

Frankfurt offers a so-called “Section Title” on every page. It shows the page the visitor is currently viewing.

pre_frankfurt_get_section_title

This pre-filter bypasses the function. With it, the entire function can be bypassed.

Parameter
  • boolean FALSE – This parameter checks, whether the function is being bypassed
  • array $args – This array contains all arguments, which are handed over via the parameters of the function.
  • array $default_args – This array contains all the standard arguments we have specified. These values are:
    • string before – Before the actual element
    • string after – After the actual element
    • string before_title – HTML directly before the title
    • string after_title – HTML directly after the title

frankfurt_get_section_title_args

This filter is executed, once the arguments from the $args array and the $default_args array have been consolidated. This is the last chance to manipulate the arguments, before the actual function is executed.

Parameter
  • array $args – The consolidated arguments

frankfurt_get_section_title

This is a return filter and is executed, once all important parts of the function are completed.

Parameter
  • string $output – The final HTML of the section title
  • string $title – The page title
  • array $args – The arguments that were actually used

PermalinkPagination

pre_frankfurt_get_posts_pagination

This pre-filter bypasses the function. With it, the entire function can be bypassed.

Parameter
  • boolean FALSE – This parameter checks, whether the function is being bypassed
  • array $args – This array contains all arguments, which are handed over via the parameters of the function.
  • array $default_args – This array contains all the standard arguments we have specified. These values are:
    • string base – Link basis
    • string current – Current element
    • string format – The permalink format included by WordPress
    • integer mid_size – Shows that many pages next to the currently selected page
    • integer end_size -Shows that many pages at the start and finish of the pagination
    • integer total – Total number of pages
    • string type – Output type of the pagination: “plain” and “list”
    • string prev_text – Text for the “previous page”
    • string next_text – Text for the “next page”

frankfurt_get_posts_pagination_args

This filter is executed, once the arguments from the $args array and the $default_args array have been consolidated. This is the last chance to manipulate the arguments, before the actual function is executed.

Parameter
  • array $args – The consolidated arguments

frankfurt_get_posts_pagination

This is a return filter and is executed, once all important parts of the function are completed.

Parameter
  • string $output – The final HTML of the pagination
  • array $args – The arguments that were actually used

PermalinkJavaScript

The Frankfurt theme use some JavaScripts as standard. They are not essential in the workings of the page, but they add that little something extra. The actual scripts can also be manipulated.

frankfurt_get_scripts

This return filter contains all the scripts registered in the theme.

Parameter
  • array $scripts – Array with all scripts. A script here is a self-contained array within $scripts, and contains the following parameters:
    • string src – URL for the script
    • array deps – Dependencies of the script, i.e. jquery
    • mixed version – Version of the script
    • boolean in_footer – Checks, whether the script is to be included in the footer

PermalinkCSS

The Frankfurt theme of course uses style sheets as standard. These – just like scripts – can be expanded or modified.

frankfurt_get_styles

This return filter contains all the registered style sheets.

Parameter
  • array $styles – Array with all scripts. A script here is a self-contained array within, and contains the following parameters:
    • string src – URL for the style sheet
    • array deps – Dependencies of the style sheet
    • mixed version – Version of the style sheet
    • string media – Shows the media context, in which the style exists

PermalinkImage Sizes

This function registers all the important image sizes used by the theme.

frankfurt_image_sizes

This filter contains the standard sizes provided by the theme.

Parameter
  • array $default_sizes – This array contains all sizes. Each size here is a self-contained array within $default_sizes, and contains the following values
    • integer width – Image width
    • integer height – Image height
    • boolean crop – Checks, whether an image should be cropped