Documentation

Settings
in package

Class defining configurable plugin settings.

Tags
since
1.5.0
since
2.8.0

Renamed class from Footnotes_Settings to Settings. Moved under footnotes\includes namespace.

Table of Contents

BACKLINKS_COLUMN_MAX_WIDTH_ENABLED  = 'footnotes_inputfield_backlinks_column_max_width_enabled'
Settings container key to enable a max width for the backlinks column.
BACKLINKS_COLUMN_MAX_WIDTH_SCALAR  = 'footnotes_inputfield_backlinks_column_max_width_scalar'
Settings container key for the backlinks column max width scalar.
BACKLINKS_COLUMN_MAX_WIDTH_UNIT  = 'footnotes_inputfield_backlinks_column_max_width_unit'
Settings container key for the backlinks column max width unit.
BACKLINKS_COLUMN_WIDTH_ENABLED  = 'footnotes_inputfield_backlinks_column_width_enabled'
Settings container key to enable the backlinks column width.
BACKLINKS_COLUMN_WIDTH_SCALAR  = 'footnotes_inputfield_backlinks_column_width_scalar'
Settings container key for the backlinks column width scalar.
BACKLINKS_COLUMN_WIDTH_UNIT  = 'footnotes_inputfield_backlinks_column_width_unit'
Settings container key for the backlinks column width unit.
BACKLINKS_LINE_BREAKS_ENABLED  = 'footnotes_inputfield_backlinks_line_breaks_enabled'
Settings container key to enable line breaks between backlinks.
BACKLINKS_SEPARATOR_CUSTOM  = 'footnotes_inputfield_backlinks_separator_custom'
Settings container key for a custom backlink separator.
BACKLINKS_SEPARATOR_ENABLED  = 'footnotes_inputfield_backlinks_separator_enabled'
Settings container key to enable the presence of a backlink separator.
BACKLINKS_SEPARATOR_OPTION  = 'footnotes_inputfield_backlinks_separator_option'
Settings container key for the backlink separator options.
BACKLINKS_TERMINATOR_CUSTOM  = 'footnotes_inputfield_backlinks_terminator_custom'
Settings container key for a custom backlink terminator.
BACKLINKS_TERMINATOR_ENABLED  = 'footnotes_inputfield_backlinks_terminator_enabled'
Settings container key to enable the presence of a backlink terminator.
BACKLINKS_TERMINATOR_OPTION  = 'footnotes_inputfield_backlinks_terminator_option'
Settings container key for the backlink terminator options.
COMBINE_IDENTICAL_FOOTNOTES  = 'footnote_inputfield_combine_identical'
Settings container key for combining identical footnotes.
CUSTOM_CSS  = 'footnote_inputfield_custom_css'
Settings container key for the Custom CSS.
CUSTOM_CSS_LEGACY_ENABLE  = 'footnote_inputfield_custom_css_legacy_enable'
Settings container key to enable display of legacy Custom CSS metaboxes.
CUSTOM_CSS_NEW  = 'footnote_inputfield_custom_css_new'
Settings container key for the Custom CSS migrated to a dedicated tab.
EXPERT_LOOKUP_THE_CONTENT  = 'footnote_inputfield_expert_lookup_the_content'
Settings container key to enable the `the_content` hook.
EXPERT_LOOKUP_THE_CONTENT_PRIORITY_LEVEL  = 'footnote_inputfield_expert_lookup_the_content_priority_level'
Settings container key for `the_content` hook priority level.
EXPERT_LOOKUP_THE_EXCERPT  = 'footnote_inputfield_expert_lookup_the_excerpt'
Settings container key to enable the `the_excerpt` hook.
EXPERT_LOOKUP_THE_EXCERPT_PRIORITY_LEVEL  = 'footnote_inputfield_expert_lookup_the_excerpt_priority_level'
Settings container key for `the_excerpt` hook priority level.
EXPERT_LOOKUP_THE_TITLE  = 'footnote_inputfield_expert_lookup_the_title'
Settings container key to enable the `the_title` hook.
EXPERT_LOOKUP_THE_TITLE_PRIORITY_LEVEL  = 'footnote_inputfield_expert_lookup_the_title_priority_level'
Settings container key for `the_title` hook priority level.
EXPERT_LOOKUP_WIDGET_TEXT  = 'footnote_inputfield_expert_lookup_widget_text'
Settings container key to enable the `widget_text` hook.
EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL  = 'footnote_inputfield_expert_lookup_widget_text_priority_level'
Settings container key for `widget_text` hook priority level.
EXPERT_LOOKUP_WIDGET_TITLE  = 'footnote_inputfield_expert_lookup_widget_title'
Settings container key to enable the `widget_title` hook.
EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL  = 'footnote_inputfield_expert_lookup_widget_title_priority_level'
Settings container key for `widget_title` hook priority level.
FOOTNOTE_FRAGMENT_ID_SLUG  = 'footnotes_inputfield_footnote_fragment_id_slug'
Settings container key for the fragment ID slug in footnotes.
FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT  = 'footnotes_inputfield_referrers_normal_superscript'
Settings container key to enable superscript style normalization.
FOOTNOTE_SECTION_SHORTCODE  = 'footnotes_inputfield_section_shortcode'
Settings container key for the footnote section shortcode.
FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE  = 'footnotes_inputfield_shortcode_syntax_validation_enable'
Settings container key to enable shortcode syntax validation.
FOOTNOTE_URL_WRAP_ENABLED  = 'footnote_inputfield_url_wrap_enabled'
Settings container key for URL wrap option.
FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X  = 'footnotes_inputfield_alternative_mouse_over_box_offset_x'
Settings container key for alternative tooltip _x_-offset.
FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y  = 'footnotes_inputfield_alternative_mouse_over_box_offset_y'
Settings container key for alternative tooltip _y_-offset.
FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_POSITION  = 'footnotes_inputfield_alternative_mouse_over_box_position'
Settings container key for alternative tooltip position.
FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH  = 'footnotes_inputfield_alternative_mouse_over_box_width'
Settings container key for alternative tooltip width.
FOOTNOTES_AMP_COMPATIBILITY_ENABLE  = 'footnotes_inputfield_amp_compatibility_enable'
Settings container key to enable AMP compatibility mode.
FOOTNOTES_BACKLINK_TOOLTIP_ENABLE  = 'footnotes_inputfield_backlink_tooltip_enable'
Settings container key to enable backlink tooltips.
FOOTNOTES_BACKLINK_TOOLTIP_TEXT  = 'footnotes_inputfield_backlink_tooltip_text'
Settings container key to configure the backlink tooltip.
FOOTNOTES_COUNTER_STYLE  = 'footnote_inputfield_counter_style'
Settings container key for the counter style of the footnotes.
FOOTNOTES_CSS_SMOOTH_SCROLLING  = 'footnotes_inputfield_css_smooth_scrolling'
Settings container key to enable CSS smooth scrolling.
FOOTNOTES_EXPERT_MODE  = 'footnote_inputfield_enable_expert_mode'
Settings container key for the Expert mode.
FOOTNOTES_HARD_LINKS_ENABLE  = 'footnotes_inputfield_hard_links_enable'
Settings container key to enable hard links.
FOOTNOTES_IN_EXCERPT  = 'footnote_inputfield_search_in_excerpt'
Settings container key to look for footnotes in post excerpts.
FOOTNOTES_LABEL_ISSUE_SOLUTION  = 'footnotes_inputfield_label_issue_solution'
Settings container key to set the solution of the input element label issue.
FOOTNOTES_LOVE  = 'footnote_inputfield_love'
Settings container key for the ‘I love footnotes’ text.
FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE  = 'footnote_inputfield_custom_mouse_over_box_alternative'
Settings container key to enable the alternative tooltips.
FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND  = 'footnote_inputfield_custom_mouse_over_box_background'
Settings container key for the mouse-over box to define the background color.
FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR  = 'footnote_inputfield_custom_mouse_over_box_border_color'
Settings container key for the mouse-over box to define the border color.
FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS  = 'footnote_inputfield_custom_mouse_over_box_border_radius'
Settings container key for the mouse-over box to define the border radius.
FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH  = 'footnote_inputfield_custom_mouse_over_box_border_width'
Settings container key for the mouse-over box to define the border width.
FOOTNOTES_MOUSE_OVER_BOX_COLOR  = 'footnote_inputfield_custom_mouse_over_box_color'
Settings container key for the mouse-over box to define the color.
FOOTNOTES_MOUSE_OVER_BOX_ENABLED  = 'footnote_inputfield_custom_mouse_over_box_enabled'
Settings container key to enable the mouse-over box.
FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED  = 'footnote_inputfield_custom_mouse_over_box_excerpt_enabled'
Settings container key to enable tooltip truncation.
FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH  = 'footnote_inputfield_custom_mouse_over_box_excerpt_length'
Settings container key for the mouse-over box to define the max. length of the enabled excerpt.
FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH  = 'footnote_inputfield_custom_mouse_over_box_max_width'
Settings container key for the mouse-over box to define the max. width.
FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X  = 'footnote_inputfield_custom_mouse_over_box_offset_x'
Settings container key for the mouse-over box to define the _x_-offset.
FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y  = 'footnote_inputfield_custom_mouse_over_box_offset_y'
Settings container key for the mouse-over box to define the _y_-offset.
FOOTNOTES_MOUSE_OVER_BOX_POSITION  = 'footnote_inputfield_custom_mouse_over_box_position'
Settings container key for the mouse-over box to define the position.
FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR  = 'footnote_inputfield_custom_mouse_over_box_shadow_color'
Settings container key for the mouse-over box to define the box-shadow color.
FOOTNOTES_PAGE_LAYOUT_SUPPORT  = 'footnotes_inputfield_page_layout_support'
Settings container key for basic responsive page layout support options.
FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE  = 'footnotes_inputfield_reference_container_script_mode'
Settings container key to select the script mode for the reference container.
FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS  = 'footnotes_inputfield_referrer_superscript_tags'
Settings container key for the referrer element.
FOOTNOTES_SCROLL_DOWN_DELAY  = 'footnotes_inputfield_scroll_down_delay'
Settings container key for scroll-down delay.
FOOTNOTES_SCROLL_DOWN_DURATION  = 'footnotes_inputfield_scroll_down_duration'
Settings container key for scroll-down duration.
FOOTNOTES_SCROLL_DURATION  = 'footnotes_inputfield_scroll_duration'
Settings container key for scroll duration.
FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY  = 'footnotes_inputfield_scroll_duration_asymmetricity'
Settings container key for scroll duration asymmetricity.
FOOTNOTES_SCROLL_OFFSET  = 'footnotes_inputfield_scroll_offset'
Settings container key for scroll offset.
FOOTNOTES_SCROLL_UP_DELAY  = 'footnotes_inputfield_scroll_up_delay'
Settings container key for scroll-up delay.
FOOTNOTES_SHORT_CODE_END  = 'footnote_inputfield_placeholder_end'
Settings container key for the short code of the footnote's end.
FOOTNOTES_SHORT_CODE_END_USER_DEFINED  = 'footnote_inputfield_placeholder_end_user_defined'
Settings container key for the user-defined short code of the footnotes end.
FOOTNOTES_SHORT_CODE_START  = 'footnote_inputfield_placeholder_start'
Settings container key for the short code of the footnote's start.
FOOTNOTES_SHORT_CODE_START_USER_DEFINED  = 'footnote_inputfield_placeholder_start_user_defined'
Settings container key for the user-defined short code of the footnotes start.
FOOTNOTES_STYLING_AFTER  = 'footnote_inputfield_custom_styling_after'
Settings container key for the string after the footnote referrer.
FOOTNOTES_STYLING_BEFORE  = 'footnote_inputfield_custom_styling_before'
Settings container key for the string before the footnote referrer.
FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER  = 'footnotes_inputfield_tooltip_excerpt_delimiter'
Settings container key to configure the tooltip excerpt delimiter.
FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE  = 'footnotes_inputfield_tooltip_excerpt_mirror_enable'
Settings container key to enable mirroring the tooltip excerpt in the reference container.
FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR  = 'footnotes_inputfield_tooltip_excerpt_mirror_separator'
Settings container key to configure the tooltip excerpt separator in the reference container.
FOOTNOTES_TOOLTIP_READON_LABEL  = 'footnote_inputfield_readon_label'
Settings container key for the label of the Read-on button in truncated tooltips.
HARD_LINK_IDS_SEPARATOR  = 'footnotes_inputfield_hard_link_ids_separator'
Settings container key for the ID separator in fragment IDs.
HYPERLINK_ARROW  = 'footnote_inputfield_custom_hyperlink_symbol'
Settings container key for the backlink symbol selection.
HYPERLINK_ARROW_USER_DEFINED  = 'footnote_inputfield_custom_hyperlink_symbol_user'
Settings container key for the user-defined backlink symbol.
LINK_ELEMENT_ENABLED  = 'footnote_inputfield_link_element_enabled'
Settings container key for the link element option.
MOUSE_OVER_BOX_FADE_IN_DELAY  = 'footnotes_inputfield_mouse_over_box_fade_in_delay'
Settings container key for tooltip display fade-in delay.
MOUSE_OVER_BOX_FADE_IN_DURATION  = 'footnotes_inputfield_mouse_over_box_fade_in_duration'
Settings container key for tooltip display fade-in duration.
MOUSE_OVER_BOX_FADE_OUT_DELAY  = 'footnotes_inputfield_mouse_over_box_fade_out_delay'
Settings container key for tooltip display fade-out delay.
MOUSE_OVER_BOX_FADE_OUT_DURATION  = 'footnotes_inputfield_mouse_over_box_fade_out_duration'
Settings container key for tooltip display fade-out duration.
MOUSE_OVER_BOX_FONT_SIZE_ENABLED  = 'footnotes_inputfield_mouse_over_box_font_size_enabled'
Settings container key to enable setting the tooltip font size.
MOUSE_OVER_BOX_FONT_SIZE_SCALAR  = 'footnotes_inputfield_mouse_over_box_font_size_scalar'
Settings container key for the scalar value of the tooltip font size.
MOUSE_OVER_BOX_FONT_SIZE_UNIT  = 'footnotes_inputfield_mouse_over_box_font_size_unit'
Settings container key for the unit of the tooltip font size.
REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE  = 'footnotes_inputfield_reference_container_3column_layout_enable'
Settings container key to enable the legacy layout of the reference container.
REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE  = 'footnotes_inputfield_reference_container_backlink_symbol_enable'
Settings container key to enable the display of a backlink symbol.
REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH  = 'footnotes_inputfield_reference_container_backlink_symbol_switch'
Settings container key to get the backlink symbol switch side.
REFERENCE_CONTAINER_BOTTOM_MARGIN  = 'footnotes_inputfield_reference_container_bottom_margin'
Settings container key for reference container bottom margin.
REFERENCE_CONTAINER_COLLAPSE  = 'footnote_inputfield_collapse_references'
Settings container key to collapse the reference container by default.
REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER  = 'footnotes_inputfield_reference_container_label_bottom_border'
Settings container key to enable the reference container label bottom border.
REFERENCE_CONTAINER_LABEL_ELEMENT  = 'footnotes_inputfield_reference_container_label_element'
Settings container key for the reference container label element.
REFERENCE_CONTAINER_NAME  = 'footnote_inputfield_references_label'
Settings container key for the label of the reference container.
REFERENCE_CONTAINER_POSITION  = 'footnote_inputfield_reference_container_place'
Settings container key for the position of the reference container.
REFERENCE_CONTAINER_POSITION_SHORTCODE  = 'footnote_inputfield_reference_container_position_shortcode'
Settings container key for reference container position shortcode.
REFERENCE_CONTAINER_ROW_BORDERS_ENABLE  = 'footnotes_inputfield_reference_container_row_borders_enable'
Settings container key to enable reference container table row borders.
REFERENCE_CONTAINER_START_PAGE_ENABLE  = 'footnotes_inputfield_reference_container_start_page_enable'
Settings container key to not display the reference container on the homepage.
REFERENCE_CONTAINER_TOP_MARGIN  = 'footnotes_inputfield_reference_container_top_margin'
Settings container key for reference container top margin.
REFERRER_FRAGMENT_ID_SLUG  = 'footnotes_inputfield_referrer_fragment_id_slug'
Settings container key for the fragment ID slug in referrers.
$container  : array<string|int, mixed>
Contains all Settings Container names.
$default  : array<string|int, mixed>
Contains all default values for each Settings Container.
$instance  : Settings|null
Stores a singleton reference of this class.
$settings  : array<string|int, mixed>
Contains all Settings from each Settings Container.
get()  : string|int|null
Returns the value of specified Setting.
get_container()  : string
Returns the name of a specified Settings Container.
get_defaults()  : array<string|int, string|int>
Returns the default value(s) of a specific Settings Container.
instance()  : self
Returns a singleton of this class.
register_settings()  : void
Register all Settings Containers for the plugin Settings Page in the Dashboard.
save_options()  : bool
Updates a whole Setting Container on save.
__construct()  : mixed
Loads all Settings from each WordPress Settings Container.
load()  : array<string|int, string|int>
Loads all settings from specified Settings Containers.
load_all()  : void
Loads all Settings from each Settings container.

Constants

Settings container key to enable a max width for the backlinks column.

public string BACKLINKS_COLUMN_MAX_WIDTH_ENABLED = 'footnotes_inputfield_backlinks_column_max_width_enabled'
Tags
since
2.1.4

Settings container key for the backlinks column max width scalar.

public int BACKLINKS_COLUMN_MAX_WIDTH_SCALAR = 'footnotes_inputfield_backlinks_column_max_width_scalar'
Tags
since
2.1.4

Settings container key for the backlinks column max width unit.

public string BACKLINKS_COLUMN_MAX_WIDTH_UNIT = 'footnotes_inputfield_backlinks_column_max_width_unit'
Tags
since
2.1.4

Settings container key to enable the backlinks column width.

public string BACKLINKS_COLUMN_WIDTH_ENABLED = 'footnotes_inputfield_backlinks_column_width_enabled'
Tags
since
2.1.4

Settings container key for the backlinks column width scalar.

public int BACKLINKS_COLUMN_WIDTH_SCALAR = 'footnotes_inputfield_backlinks_column_width_scalar'
Tags
since
2.1.4

Settings container key for the backlinks column width unit.

public string BACKLINKS_COLUMN_WIDTH_UNIT = 'footnotes_inputfield_backlinks_column_width_unit'
Tags
since
2.1.4

Settings container key to enable line breaks between backlinks.

public string BACKLINKS_LINE_BREAKS_ENABLED = 'footnotes_inputfield_backlinks_line_breaks_enabled'
Tags
since
2.1.4

Whether a
tag is inserted.

Settings container key for a custom backlink separator.

public string BACKLINKS_SEPARATOR_CUSTOM = 'footnotes_inputfield_backlinks_separator_custom'
Tags
since
2.1.4

Settings container key to enable the presence of a backlink separator.

public string BACKLINKS_SEPARATOR_ENABLED = 'footnotes_inputfield_backlinks_separator_enabled'

Backlink separators and terminators are often not preferred, but a choice should be provided along with the ability to customize.

Tags
since
2.1.4

Settings container key for the backlink separator options.

public string BACKLINKS_SEPARATOR_OPTION = 'footnotes_inputfield_backlinks_separator_option'
Tags
since
2.1.4

Settings container key for a custom backlink terminator.

public string BACKLINKS_TERMINATOR_CUSTOM = 'footnotes_inputfield_backlinks_terminator_custom'
Tags
since
2.1.4

Settings container key to enable the presence of a backlink terminator.

public string BACKLINKS_TERMINATOR_ENABLED = 'footnotes_inputfield_backlinks_terminator_enabled'
Tags
since
2.1.4

Settings container key for the backlink terminator options.

public string BACKLINKS_TERMINATOR_OPTION = 'footnotes_inputfield_backlinks_terminator_option'
Tags
since
2.1.4

COMBINE_IDENTICAL_FOOTNOTES

Settings container key for combining identical footnotes.

public string COMBINE_IDENTICAL_FOOTNOTES = 'footnote_inputfield_combine_identical'
Tags
since
1.5.0

CUSTOM_CSS

Settings container key for the Custom CSS.

public string CUSTOM_CSS = 'footnote_inputfield_custom_css'
Tags
since
1.5.0

CUSTOM_CSS_LEGACY_ENABLE

Settings container key to enable display of legacy Custom CSS metaboxes.

public string CUSTOM_CSS_LEGACY_ENABLE = 'footnote_inputfield_custom_css_legacy_enable'

This must be false if its setting is contained in the container to be hidden because when saving, all missing constants are emptied, and Footnotes_Convert::to_bool() converts empty to false.

Tags
since
2.2.2
since
2.3.0

Swap migration Boolean, meaning ‘show legacy’ instead of ‘migration complete’, due to storage data structure constraints.

CUSTOM_CSS_NEW

Settings container key for the Custom CSS migrated to a dedicated tab.

public string CUSTOM_CSS_NEW = 'footnote_inputfield_custom_css_new'
Tags
since
2.2.2

EXPERT_LOOKUP_THE_CONTENT

Settings container key to enable the `the_content` hook.

public string EXPERT_LOOKUP_THE_CONTENT = 'footnote_inputfield_expert_lookup_the_content'
Tags
since
1.5.5

EXPERT_LOOKUP_THE_CONTENT_PRIORITY_LEVEL

Settings container key for `the_content` hook priority level.

public int EXPERT_LOOKUP_THE_CONTENT_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_the_content_priority_level'

Priority level of the_content and of widget_text as the only relevant hooks must be less than 99 because social buttons may yield scripts that contain the strings ‘((’ and ‘))’ (i.e., the default footnote start and end shortcodes), which causes issues with fake footnotes.

Setting the_content priority to 10 instead of PHP_INT_MAX makes the footnotes reference container display beneath the post and above other features added by other plugins, e.g. related post lists and social buttons.

For the YARPP plugin to display related posts below the Footnotes reference container, priority needs to be at least 1,200.

PHP_INT_MAX cannot be reset by leaving the number box empty, because WebKit browsers don't allow it, so we must resort to -1.

Tags
since
2.0.5

EXPERT_LOOKUP_THE_EXCERPT

Settings container key to enable the `the_excerpt` hook.

public string EXPERT_LOOKUP_THE_EXCERPT = 'footnote_inputfield_expert_lookup_the_excerpt'
Tags
see
FOOTNOTES_IN_EXCERPT
since
1.5.5
since
2.6.3

Enable by default.

EXPERT_LOOKUP_THE_EXCERPT_PRIORITY_LEVEL

Settings container key for `the_excerpt` hook priority level.

public int EXPERT_LOOKUP_THE_EXCERPT_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_the_excerpt_priority_level'
Tags
since
2.1.2

EXPERT_LOOKUP_THE_TITLE

Settings container key to enable the `the_title` hook.

public string EXPERT_LOOKUP_THE_TITLE = 'footnote_inputfield_expert_lookup_the_title'

These are checkboxes; the keyword checked is converted to true, whilst an empty string (the default) is converted to false.

Hooks should all be enabled by default to prevent users from thinking at first that the feature is broken in post titles (see here for more information).

Tags
since
1.5.5
todo

In titles, footnotes are still buggy, because WordPress uses the title string in menus and in the title element, but Footnotes doesn't delete footnotes in them.

EXPERT_LOOKUP_THE_TITLE_PRIORITY_LEVEL

Settings container key for `the_title` hook priority level.

public int EXPERT_LOOKUP_THE_TITLE_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_the_title_priority_level'
Tags
since
2.1.2

EXPERT_LOOKUP_WIDGET_TEXT

Settings container key to enable the `widget_text` hook.

public string EXPERT_LOOKUP_WIDGET_TEXT = 'footnote_inputfield_expert_lookup_widget_text'

The widget_text hook must be disabled by default, because it causes multiple reference containers to appear in Elementor accordions, but it must be enabled if multiple reference containers are desired, as in Elementor toggles.

Tags
since
1.5.5

EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL

Settings container key for `widget_text` hook priority level.

public int EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_widget_text_priority_level'
Tags
since
2.1.2

EXPERT_LOOKUP_WIDGET_TITLE

Settings container key to enable the `widget_title` hook.

public string EXPERT_LOOKUP_WIDGET_TITLE = 'footnote_inputfield_expert_lookup_widget_title'
Tags
since
1.5.5

EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL

Settings container key for `widget_title` hook priority level.

public int EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL = 'footnote_inputfield_expert_lookup_widget_title_priority_level'
Tags
since
2.1.2

FOOTNOTE_FRAGMENT_ID_SLUG

Settings container key for the fragment ID slug in footnotes.

public string FOOTNOTE_FRAGMENT_ID_SLUG = 'footnotes_inputfield_footnote_fragment_id_slug'
Tags
since
2.3.0

FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT

Settings container key to enable superscript style normalization.

public string FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT = 'footnotes_inputfield_referrers_normal_superscript'
Tags
since
2.5.4

FOOTNOTE_SECTION_SHORTCODE

Settings container key for the footnote section shortcode.

public string FOOTNOTE_SECTION_SHORTCODE = 'footnotes_inputfield_section_shortcode'
Tags
since
2.7.0

FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE

Settings container key to enable shortcode syntax validation.

public string FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE = 'footnotes_inputfield_shortcode_syntax_validation_enable'
Tags
since
2.4.0

FOOTNOTE_URL_WRAP_ENABLED

Settings container key for URL wrap option.

public string FOOTNOTE_URL_WRAP_ENABLED = 'footnote_inputfield_url_wrap_enabled'

This is made optional because it causes weird line breaks. Unicode-compliant browsers break URLs at slashes.

Tags
since
2.1.6

FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X

Settings container key for alternative tooltip _x_-offset.

public int FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X = 'footnotes_inputfield_alternative_mouse_over_box_offset_x'
Tags
since
2.2.5

FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y

Settings container key for alternative tooltip _y_-offset.

public int FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y = 'footnotes_inputfield_alternative_mouse_over_box_offset_y'
Tags
since
2.2.5

FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_POSITION

Settings container key for alternative tooltip position.

public string FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_POSITION = 'footnotes_inputfield_alternative_mouse_over_box_position'

Fixed-width is for alternative tooltips, cannot reuse max-width nor offsets.

Tags
since
2.2.5

FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH

Settings container key for alternative tooltip width.

public int FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH = 'footnotes_inputfield_alternative_mouse_over_box_width'
Tags
since
2.2.5

FOOTNOTES_AMP_COMPATIBILITY_ENABLE

Settings container key to enable AMP compatibility mode.

public string FOOTNOTES_AMP_COMPATIBILITY_ENABLE = 'footnotes_inputfield_amp_compatibility_enable'
Tags
since
2.6.0

Settings container key to enable backlink tooltips.

public string FOOTNOTES_BACKLINK_TOOLTIP_ENABLE = 'footnotes_inputfield_backlink_tooltip_enable'

When hard links are enabled, clicks on the backlinks are logged in the browsing history, along with clicks on the referrers. This tooltip hints to use the backbutton instead, so the history gets streamlined again. See here for more information.

Tags
since
2.5.4

Settings container key to configure the backlink tooltip.

public string FOOTNOTES_BACKLINK_TOOLTIP_TEXT = 'footnotes_inputfield_backlink_tooltip_text'
Tags
since
2.5.4

FOOTNOTES_COUNTER_STYLE

Settings container key for the counter style of the footnotes.

public string FOOTNOTES_COUNTER_STYLE = 'footnote_inputfield_counter_style'
Tags
since
1.5.0

FOOTNOTES_CSS_SMOOTH_SCROLLING

Settings container key to enable CSS smooth scrolling.

public string FOOTNOTES_CSS_SMOOTH_SCROLLING = 'footnotes_inputfield_css_smooth_scrolling'

Native smooth scrolling only works in recent browsers.

Tags
since
2.5.12

FOOTNOTES_EXPERT_MODE

Settings container key for the Expert mode.

public string FOOTNOTES_EXPERT_MODE = 'footnote_inputfield_enable_expert_mode'

Since the removal of the the_post hook, the tab is no danger zone any longer. All users, not experts only, need to be able to control relative positioning.

Tags
since
1.5.5
since
2.1.6

Setting deprecated.

deprecated
todo

Un-deprecate.

Settings container key to enable hard links.

public string FOOTNOTES_HARD_LINKS_ENABLE = 'footnotes_inputfield_hard_links_enable'

When the alternative reference container is enabled, hard links are too.

Tags
since
2.3.0

FOOTNOTES_IN_EXCERPT

Settings container key to look for footnotes in post excerpts.

public string FOOTNOTES_IN_EXCERPT = 'footnote_inputfield_search_in_excerpt'
Tags
see
EXPERT_LOOKUP_THE_EXCERPT
since
1.5.0
since
2.6.3

Enabled by default.

FOOTNOTES_LABEL_ISSUE_SOLUTION

Settings container key to set the solution of the input element label issue.

public string FOOTNOTES_LABEL_ISSUE_SOLUTION = 'footnotes_inputfield_label_issue_solution'

If hard links are not enabled, clicking a referrer in an input element label toggles the state of the input element the label is connected to. Beside hard links, other solutions include moving footnotes off the label and append them, or disconnecting this label from the input element (discouraged). See here for more information.

Tags
since
2.5.12
todo

Review, remove?

FOOTNOTES_LOVE

Settings container key for the ‘I love footnotes’ text.

public string FOOTNOTES_LOVE = 'footnote_inputfield_love'
Tags
since
1.5.0

FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE

Settings container key to enable the alternative tooltips.

public string FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE = 'footnote_inputfield_custom_mouse_over_box_alternative'

These alternative tooltips work around a website-related jQuery UI outage. They are low-script but use the AMP-incompatible onmouseover and onmouseout arguments, along with CSS transitions for fade-in/out. The very small script is inserted after the plugin's internal stylesheet.

Tags
since
2.1.1

FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND

Settings container key for the mouse-over box to define the background color.

public string FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND = 'footnote_inputfield_custom_mouse_over_box_background'

Theme default background color is best, but theme default background color doesn't seem to exist.

The default is currently #ffffff with #000000 as the text color.

Tags
see
FOOTNOTES_MOUSE_OVER_BOX_COLOR
since
1.5.6

FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR

Settings container key for the mouse-over box to define the border color.

public string FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR = 'footnote_inputfield_custom_mouse_over_box_border_color'
Tags
since
1.5.6

FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS

Settings container key for the mouse-over box to define the border radius.

public int FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS = 'footnote_inputfield_custom_mouse_over_box_border_radius'
Tags
since
1.5.6

FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH

Settings container key for the mouse-over box to define the border width.

public int FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH = 'footnote_inputfield_custom_mouse_over_box_border_width'
Tags
since
1.5.6

FOOTNOTES_MOUSE_OVER_BOX_COLOR

Settings container key for the mouse-over box to define the color.

public string FOOTNOTES_MOUSE_OVER_BOX_COLOR = 'footnote_inputfield_custom_mouse_over_box_color'
Tags
see
FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND
since
1.5.6

FOOTNOTES_MOUSE_OVER_BOX_ENABLED

Settings container key to enable the mouse-over box.

public string FOOTNOTES_MOUSE_OVER_BOX_ENABLED = 'footnote_inputfield_custom_mouse_over_box_enabled'
Tags
since
1.5.2

FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED

Settings container key to enable tooltip truncation.

public string FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED = 'footnote_inputfield_custom_mouse_over_box_excerpt_enabled'
Tags
since
1.5.4
todo

The mouse-over content truncation should be enabled by default to raise awareness of the functionality, prevent the screen from being filled on mouse-over, and allow the use of ‘Continue Reading’ functionality.

FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH

Settings container key for the mouse-over box to define the max. length of the enabled excerpt.

public int FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH = 'footnote_inputfield_custom_mouse_over_box_excerpt_length'

The default truncation length is 200 chars.

Tags
since
1.5.4

FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH

Settings container key for the mouse-over box to define the max. width.

public int FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH = 'footnote_inputfield_custom_mouse_over_box_max_width'

The width should be limited to start with, for the box to have shape.

The default width is 450.

Tags
since
1.5.6

FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X

Settings container key for the mouse-over box to define the _x_-offset.

public int FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X = 'footnote_inputfield_custom_mouse_over_box_offset_x'
Tags
since
1.5.7

FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y

Settings container key for the mouse-over box to define the _y_-offset.

public int FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y = 'footnote_inputfield_custom_mouse_over_box_offset_y'

The vertical offset must be negative for the box not to cover the current line of text.

Tags
since
1.5.7

FOOTNOTES_MOUSE_OVER_BOX_POSITION

Settings container key for the mouse-over box to define the position.

public string FOOTNOTES_MOUSE_OVER_BOX_POSITION = 'footnote_inputfield_custom_mouse_over_box_position'

The default position should not be lateral because of the risk the box gets squeezed between note anchor at line end and window edge, and top because reading at the bottom of the window is more likely.

Tags
since
1.5.7

FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR

Settings container key for the mouse-over box to define the box-shadow color.

public string FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR = 'footnote_inputfield_custom_mouse_over_box_shadow_color'
Tags
since
1.5.8

FOOTNOTES_PAGE_LAYOUT_SUPPORT

Settings container key for basic responsive page layout support options.

public string FOOTNOTES_PAGE_LAYOUT_SUPPORT = 'footnotes_inputfield_page_layout_support'

Whether to concatenate an additional stylesheet.

Tags
since
2.1.4

FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE

Settings container key to select the script mode for the reference container.

public string FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE = 'footnotes_inputfield_reference_container_script_mode'
Tags
since
2.5.6

FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS

Settings container key for the referrer element.

public string FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS = 'footnotes_inputfield_referrer_superscript_tags'
Tags
since
2.1.1

FOOTNOTES_SCROLL_DOWN_DELAY

Settings container key for scroll-down delay.

public int FOOTNOTES_SCROLL_DOWN_DELAY = 'footnotes_inputfield_scroll_down_delay'
Tags
since
2.5.11

FOOTNOTES_SCROLL_DOWN_DURATION

Settings container key for scroll-down duration.

public int FOOTNOTES_SCROLL_DOWN_DURATION = 'footnotes_inputfield_scroll_down_duration'
Tags
since
2.5.11

FOOTNOTES_SCROLL_DURATION

Settings container key for scroll duration.

public int FOOTNOTES_SCROLL_DURATION = 'footnotes_inputfield_scroll_duration'
Tags
since
2.1.4

FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY

Settings container key for scroll duration asymmetricity.

public int FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY = 'footnotes_inputfield_scroll_duration_asymmetricity'
Tags
since
2.5.11

FOOTNOTES_SCROLL_OFFSET

Settings container key for scroll offset.

public int FOOTNOTES_SCROLL_OFFSET = 'footnotes_inputfield_scroll_offset'
Tags
since
2.1.4

FOOTNOTES_SCROLL_UP_DELAY

Settings container key for scroll-up delay.

public int FOOTNOTES_SCROLL_UP_DELAY = 'footnotes_inputfield_scroll_up_delay'
Tags
since
2.5.11

FOOTNOTES_SHORT_CODE_END

Settings container key for the short code of the footnote's end.

public string FOOTNOTES_SHORT_CODE_END = 'footnote_inputfield_placeholder_end'
Tags
since
1.5.0

FOOTNOTES_SHORT_CODE_END_USER_DEFINED

Settings container key for the user-defined short code of the footnotes end.

public string FOOTNOTES_SHORT_CODE_END_USER_DEFINED = 'footnote_inputfield_placeholder_end_user_defined'
Tags
since
1.5.0

FOOTNOTES_SHORT_CODE_START

Settings container key for the short code of the footnote's start.

public string FOOTNOTES_SHORT_CODE_START = 'footnote_inputfield_placeholder_start'
Tags
since
1.5.0

FOOTNOTES_SHORT_CODE_START_USER_DEFINED

Settings container key for the user-defined short code of the footnotes start.

public string FOOTNOTES_SHORT_CODE_START_USER_DEFINED = 'footnote_inputfield_placeholder_start_user_defined'
Tags
since
1.5.0

FOOTNOTES_STYLING_AFTER

Settings container key for the string after the footnote referrer.

public string FOOTNOTES_STYLING_AFTER = 'footnote_inputfield_custom_styling_after'
Tags
since
1.5.0

FOOTNOTES_STYLING_BEFORE

Settings container key for the string before the footnote referrer.

public string FOOTNOTES_STYLING_BEFORE = 'footnote_inputfield_custom_styling_before'

The default footnote referrer surroundings should be square brackets, as in English or US American typesetting, for better UX thanks to a more button-like appearance, as well as for stylistic consistency with the expand-collapse button.

Tags
since
1.5.0

FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER

Settings container key to configure the tooltip excerpt delimiter.

public string FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER = 'footnotes_inputfield_tooltip_excerpt_delimiter'

The first implementation used a fixed shortcode provided in the changelog, but footnotes should have freely-configurable shortcodes.

Tooltips can display another content than the footnote entry in the reference container. The trigger is a shortcode in the footnote text separating the tooltip text from the note. That is consistent with what WordPress does for excerpts.

Tags
since
2.5.4

FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE

Settings container key to enable mirroring the tooltip excerpt in the reference container.

public string FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE = 'footnotes_inputfield_tooltip_excerpt_mirror_enable'

Tooltips, even jQuery-driven, may be hard to consult on mobiles. This option allows users to read the tooltip content in the reference container too. See here for more information, and here for why this must not be the default behavior.

Tags
since
2.5.4

FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR

Settings container key to configure the tooltip excerpt separator in the reference container.

public string FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR = 'footnotes_inputfield_tooltip_excerpt_mirror_separator'
Tags
since
2.5.4

FOOTNOTES_TOOLTIP_READON_LABEL

Settings container key for the label of the Read-on button in truncated tooltips.

public string FOOTNOTES_TOOLTIP_READON_LABEL = 'footnote_inputfield_readon_label'
Tags
since
2.1.0

Settings container key for the ID separator in fragment IDs.

public string HARD_LINK_IDS_SEPARATOR = 'footnotes_inputfield_hard_link_ids_separator'
Tags
since
2.3.0

Settings container key for the backlink symbol selection.

public string HYPERLINK_ARROW = 'footnote_inputfield_custom_hyperlink_symbol'
Tags
since
1.5.0

Settings container key for the user-defined backlink symbol.

public string HYPERLINK_ARROW_USER_DEFINED = 'footnote_inputfield_custom_hyperlink_symbol_user'
Tags
since
1.5.0

Settings container key for the link element option.

public string LINK_ELEMENT_ENABLED = 'footnote_inputfield_link_element_enabled'
Tags
since
2.1.4

MOUSE_OVER_BOX_FADE_IN_DELAY

Settings container key for tooltip display fade-in delay.

public int MOUSE_OVER_BOX_FADE_IN_DELAY = 'footnotes_inputfield_mouse_over_box_fade_in_delay'
Tags
since
2.1.4

MOUSE_OVER_BOX_FADE_IN_DURATION

Settings container key for tooltip display fade-in duration.

public int MOUSE_OVER_BOX_FADE_IN_DURATION = 'footnotes_inputfield_mouse_over_box_fade_in_duration'
Tags
since
2.1.4

MOUSE_OVER_BOX_FADE_OUT_DELAY

Settings container key for tooltip display fade-out delay.

public int MOUSE_OVER_BOX_FADE_OUT_DELAY = 'footnotes_inputfield_mouse_over_box_fade_out_delay'
Tags
since
2.1.4

MOUSE_OVER_BOX_FADE_OUT_DURATION

Settings container key for tooltip display fade-out duration.

public int MOUSE_OVER_BOX_FADE_OUT_DURATION = 'footnotes_inputfield_mouse_over_box_fade_out_duration'
Tags
since
2.1.4

MOUSE_OVER_BOX_FONT_SIZE_ENABLED

Settings container key to enable setting the tooltip font size.

public string MOUSE_OVER_BOX_FONT_SIZE_ENABLED = 'footnotes_inputfield_mouse_over_box_font_size_enabled'
Tags
since
2.1.4

Tooltip font size reset to legacy by default since 2.1.4; Was set to inherit since 2.1.1 as it overrode custom CSS, Called mouse over box not tooltip for consistency.

MOUSE_OVER_BOX_FONT_SIZE_SCALAR

Settings container key for the scalar value of the tooltip font size.

public float MOUSE_OVER_BOX_FONT_SIZE_SCALAR = 'footnotes_inputfield_mouse_over_box_font_size_scalar'
Tags
since
2.1.4

MOUSE_OVER_BOX_FONT_SIZE_UNIT

Settings container key for the unit of the tooltip font size.

public string MOUSE_OVER_BOX_FONT_SIZE_UNIT = 'footnotes_inputfield_mouse_over_box_font_size_unit'
Tags
since
2.1.4

REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE

Settings container key to enable the legacy layout of the reference container.

public string REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE = 'footnotes_inputfield_reference_container_3column_layout_enable'
Tags
since
2.1.1

Settings container key to enable the display of a backlink symbol.

public string REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE = 'footnotes_inputfield_reference_container_backlink_symbol_enable'
Tags
since
2.1.1

Settings container key to get the backlink symbol switch side.

public string REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH = 'footnotes_inputfield_reference_container_backlink_symbol_switch'
Tags
since
2.1.1

REFERENCE_CONTAINER_BOTTOM_MARGIN

Settings container key for reference container bottom margin.

public int REFERENCE_CONTAINER_BOTTOM_MARGIN = 'footnotes_inputfield_reference_container_bottom_margin'
Tags
since
2.3.0

REFERENCE_CONTAINER_COLLAPSE

Settings container key to collapse the reference container by default.

public string REFERENCE_CONTAINER_COLLAPSE = 'footnote_inputfield_collapse_references'

The string is converted to Boolean false if 'no', true if 'yes'.

Tags
since
1.5.0
todo

Refactor to use sane typing.

REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER

Settings container key to enable the reference container label bottom border.

public string REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER = 'footnotes_inputfield_reference_container_label_bottom_border'
Tags
since
2.2.5

REFERENCE_CONTAINER_LABEL_ELEMENT

Settings container key for the reference container label element.

public string REFERENCE_CONTAINER_LABEL_ELEMENT = 'footnotes_inputfield_reference_container_label_element'
Tags
since
2.2.5

REFERENCE_CONTAINER_NAME

Settings container key for the label of the reference container.

public string REFERENCE_CONTAINER_NAME = 'footnote_inputfield_references_label'
Tags
since
1.5.0

REFERENCE_CONTAINER_POSITION

Settings container key for the position of the reference container.

public string REFERENCE_CONTAINER_POSITION = 'footnote_inputfield_reference_container_place'
Tags
since
1.5.0

REFERENCE_CONTAINER_POSITION_SHORTCODE

Settings container key for reference container position shortcode.

public string REFERENCE_CONTAINER_POSITION_SHORTCODE = 'footnote_inputfield_reference_container_position_shortcode'
Tags
since
2.2.0

REFERENCE_CONTAINER_ROW_BORDERS_ENABLE

Settings container key to enable reference container table row borders.

public string REFERENCE_CONTAINER_ROW_BORDERS_ENABLE = 'footnotes_inputfield_reference_container_row_borders_enable'
Tags
since
2.2.10

REFERENCE_CONTAINER_START_PAGE_ENABLE

Settings container key to not display the reference container on the homepage.

public string REFERENCE_CONTAINER_START_PAGE_ENABLE = 'footnotes_inputfield_reference_container_start_page_enable'
Tags
since
2.1.1

REFERENCE_CONTAINER_TOP_MARGIN

Settings container key for reference container top margin.

public int REFERENCE_CONTAINER_TOP_MARGIN = 'footnotes_inputfield_reference_container_top_margin'
Tags
since
2.3.0

REFERRER_FRAGMENT_ID_SLUG

Settings container key for the fragment ID slug in referrers.

public string REFERRER_FRAGMENT_ID_SLUG = 'footnotes_inputfield_referrer_fragment_id_slug'
Tags
since
2.3.0

Properties

$container

Contains all Settings Container names.

private array<string|int, mixed> $container = array('footnotes_storage', 'footnotes_storage_custom', 'footnotes_storage_expert', 'footnotes_storage_custom_css')

These are the storage container names, one per dashboard tab.

Tags
since
1.5.0

$default

Contains all default values for each Settings Container.

private array<string|int, mixed> $default = array( // General settings. 'footnotes_storage' => array( // AMP compatibility. self::FOOTNOTES_AMP_COMPATIBILITY_ENABLE => '', // Footnote start and end short codes. self::FOOTNOTES_SHORT_CODE_START => '((', self::FOOTNOTES_SHORT_CODE_END => '))', self::FOOTNOTES_SHORT_CODE_START_USER_DEFINED => '', self::FOOTNOTES_SHORT_CODE_END_USER_DEFINED => '', self::FOOTNOTE_SHORTCODE_SYNTAX_VALIDATION_ENABLE => 'yes', // Footnotes numbering. self::FOOTNOTES_COUNTER_STYLE => 'arabic_plain', self::COMBINE_IDENTICAL_FOOTNOTES => 'yes', // Scrolling behavior. self::FOOTNOTES_CSS_SMOOTH_SCROLLING => 'no', self::FOOTNOTES_SCROLL_OFFSET => 20, self::FOOTNOTES_SCROLL_DURATION => 380, self::FOOTNOTES_SCROLL_DURATION_ASYMMETRICITY => 'no', self::FOOTNOTES_SCROLL_DOWN_DURATION => 150, self::FOOTNOTES_SCROLL_DOWN_DELAY => 0, self::FOOTNOTES_SCROLL_UP_DELAY => 0, self::FOOTNOTES_HARD_LINKS_ENABLE => 'no', self::REFERRER_FRAGMENT_ID_SLUG => 'r', self::FOOTNOTE_FRAGMENT_ID_SLUG => 'f', self::HARD_LINK_IDS_SEPARATOR => '+', self::FOOTNOTES_BACKLINK_TOOLTIP_ENABLE => 'yes', self::FOOTNOTES_BACKLINK_TOOLTIP_TEXT => 'Alt+ ←', // Reference container. self::REFERENCE_CONTAINER_NAME => 'References', self::REFERENCE_CONTAINER_LABEL_ELEMENT => 'p', self::REFERENCE_CONTAINER_LABEL_BOTTOM_BORDER => 'yes', self::REFERENCE_CONTAINER_COLLAPSE => 'no', self::FOOTNOTES_REFERENCE_CONTAINER_SCRIPT_MODE => 'jquery', self::REFERENCE_CONTAINER_POSITION => 'post_end', self::REFERENCE_CONTAINER_POSITION_SHORTCODE => '[[references]]', self::FOOTNOTE_SECTION_SHORTCODE => '[[/footnotesection]]', self::REFERENCE_CONTAINER_START_PAGE_ENABLE => 'yes', self::REFERENCE_CONTAINER_TOP_MARGIN => 24, self::REFERENCE_CONTAINER_BOTTOM_MARGIN => 0, self::FOOTNOTES_PAGE_LAYOUT_SUPPORT => 'none', self::FOOTNOTE_URL_WRAP_ENABLED => 'yes', self::REFERENCE_CONTAINER_BACKLINK_SYMBOL_ENABLE => 'yes', self::REFERENCE_CONTAINER_BACKLINK_SYMBOL_SWITCH => 'no', self::REFERENCE_CONTAINER_3COLUMN_LAYOUT_ENABLE => 'no', self::REFERENCE_CONTAINER_ROW_BORDERS_ENABLE => 'no', self::BACKLINKS_SEPARATOR_ENABLED => 'yes', self::BACKLINKS_SEPARATOR_OPTION => 'comma', self::BACKLINKS_SEPARATOR_CUSTOM => '', self::BACKLINKS_TERMINATOR_ENABLED => 'no', self::BACKLINKS_TERMINATOR_OPTION => 'full_stop', self::BACKLINKS_TERMINATOR_CUSTOM => '', self::BACKLINKS_COLUMN_WIDTH_ENABLED => 'no', self::BACKLINKS_COLUMN_WIDTH_SCALAR => '50', self::BACKLINKS_COLUMN_WIDTH_UNIT => 'px', self::BACKLINKS_COLUMN_MAX_WIDTH_ENABLED => 'no', self::BACKLINKS_COLUMN_MAX_WIDTH_SCALAR => '140', self::BACKLINKS_COLUMN_MAX_WIDTH_UNIT => 'px', self::BACKLINKS_LINE_BREAKS_ENABLED => 'no', self::LINK_ELEMENT_ENABLED => 'yes', // Footnotes in excerpts. self::FOOTNOTES_IN_EXCERPT => 'manual', // Footnotes love. self::FOOTNOTES_LOVE => 'no', // Deprecated. self::FOOTNOTES_EXPERT_MODE => 'yes', ), // Referrers and tooltips. 'footnotes_storage_custom' => array( // Backlink symbol. self::HYPERLINK_ARROW => 0, self::HYPERLINK_ARROW_USER_DEFINED => '', // Referrers. self::FOOTNOTES_REFERRER_SUPERSCRIPT_TAGS => 'yes', self::FOOTNOTE_REFERRERS_NORMAL_SUPERSCRIPT => 'no', self::FOOTNOTES_STYLING_BEFORE => '[', self::FOOTNOTES_STYLING_AFTER => ']', // Referrers in labels. self::FOOTNOTES_LABEL_ISSUE_SOLUTION => 'none', // Tooltips. self::FOOTNOTES_MOUSE_OVER_BOX_ENABLED => 'yes', self::FOOTNOTES_MOUSE_OVER_BOX_ALTERNATIVE => 'no', // Tooltip position. self::FOOTNOTES_MOUSE_OVER_BOX_POSITION => 'top center', self::FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_POSITION => 'top right', self::FOOTNOTES_MOUSE_OVER_BOX_OFFSET_X => 0, self::FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_X => -50, self::FOOTNOTES_MOUSE_OVER_BOX_OFFSET_Y => -7, self::FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_OFFSET_Y => 24, // Tooltip dimensions. self::FOOTNOTES_MOUSE_OVER_BOX_MAX_WIDTH => 450, self::FOOTNOTES_ALTERNATIVE_MOUSE_OVER_BOX_WIDTH => 400, // Tooltip timing. self::MOUSE_OVER_BOX_FADE_IN_DELAY => 0, self::MOUSE_OVER_BOX_FADE_IN_DURATION => 200, self::MOUSE_OVER_BOX_FADE_OUT_DELAY => 400, self::MOUSE_OVER_BOX_FADE_OUT_DURATION => 200, // Tooltip truncation. self::FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_ENABLED => 'yes', self::FOOTNOTES_MOUSE_OVER_BOX_EXCERPT_LENGTH => 200, self::FOOTNOTES_TOOLTIP_READON_LABEL => 'Continue reading', // Tooltip text. self::FOOTNOTES_TOOLTIP_EXCERPT_DELIMITER => '[[/tooltip]]', self::FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_ENABLE => 'no', self::FOOTNOTES_TOOLTIP_EXCERPT_MIRROR_SEPARATOR => ' — ', // Tooltip appearance. self::MOUSE_OVER_BOX_FONT_SIZE_ENABLED => 'yes', self::MOUSE_OVER_BOX_FONT_SIZE_SCALAR => 13, self::MOUSE_OVER_BOX_FONT_SIZE_UNIT => 'px', self::FOOTNOTES_MOUSE_OVER_BOX_COLOR => '#000000', self::FOOTNOTES_MOUSE_OVER_BOX_BACKGROUND => '#ffffff', self::FOOTNOTES_MOUSE_OVER_BOX_BORDER_WIDTH => 1, self::FOOTNOTES_MOUSE_OVER_BOX_BORDER_COLOR => '#cccc99', self::FOOTNOTES_MOUSE_OVER_BOX_BORDER_RADIUS => 0, self::FOOTNOTES_MOUSE_OVER_BOX_SHADOW_COLOR => '#666666', // Your existing Custom CSS code. self::CUSTOM_CSS => '', ), // Scope and priority. 'footnotes_storage_expert' => array( // WordPress hooks with priority level. self::EXPERT_LOOKUP_THE_TITLE => '', self::EXPERT_LOOKUP_THE_TITLE_PRIORITY_LEVEL => PHP_INT_MAX, self::EXPERT_LOOKUP_THE_CONTENT => 'checked', self::EXPERT_LOOKUP_THE_CONTENT_PRIORITY_LEVEL => 98, self::EXPERT_LOOKUP_THE_EXCERPT => '', self::EXPERT_LOOKUP_THE_EXCERPT_PRIORITY_LEVEL => PHP_INT_MAX, self::EXPERT_LOOKUP_WIDGET_TITLE => '', self::EXPERT_LOOKUP_WIDGET_TITLE_PRIORITY_LEVEL => PHP_INT_MAX, self::EXPERT_LOOKUP_WIDGET_TEXT => '', self::EXPERT_LOOKUP_WIDGET_TEXT_PRIORITY_LEVEL => 98, ), // Custom CSS. 'footnotes_storage_custom_css' => array( // Your existing Custom CSS code. self::CUSTOM_CSS_LEGACY_ENABLE => 'yes', // Custom CSS. self::CUSTOM_CSS_NEW => '', ), )
Tags
since
1.5.0
todo

Review. Why are the constants just initialised with these values? At the very least, we should stop using ‘yes’ to mean true etc.

todo

Create PreferencesSet class.

$instance

Stores a singleton reference of this class.

private static Settings|null $instance = null
Tags
since
1.5.0

$settings

Contains all Settings from each Settings Container.

private array<string|int, mixed> $settings = array()
Tags
since
1.5.0
todo

Create PreferencesSet class.

Methods

get()

Returns the value of specified Setting.

public get(string $key) : string|int|null
Parameters
$key : string

Setting key.

Tags
since
1.5.0
todo

Add return type.

Return values
string|int|null

Setting value, or null if setting key is invalid.

get_container()

Returns the name of a specified Settings Container.

public get_container(int $index) : string
Parameters
$index : int

Settings Container index.

Tags
since
1.5.0
Return values
string

Settings Container name.

get_defaults()

Returns the default value(s) of a specific Settings Container.

public get_defaults(int $index) : array<string|int, string|int>
Parameters
$index : int

Settings Container index.

Tags
since
1.5.6
Return values
array<string|int, string|int>

Settings Container default value(s).

instance()

Returns a singleton of this class.

public static instance() : self
Tags
since
1.5.0
todo

Remove?

Return values
self

register_settings()

Register all Settings Containers for the plugin Settings Page in the Dashboard.

public register_settings() : void

The Settings Container label will be the same as the Settings Container name.

Tags
since
1.5.0
Return values
void

save_options()

Updates a whole Setting Container on save.

public save_options(int $index, array<string|int, mixed> $new_values) : bool
Parameters
$index : int

Index of the Setting Container.

$new_values : array<string|int, mixed>

The new Settings value(s).

Tags
since
1.5.0
Return values
bool

__construct()

Loads all Settings from each WordPress Settings Container.

private __construct() : mixed
Tags
since
1.5.0
Return values
mixed

load()

Loads all settings from specified Settings Containers.

private load(int $index) : array<string|int, string|int>
Parameters
$index : int

Settings container index.

Tags
since
1.5.0
Return values
array<string|int, string|int>

Loaded settings (or defaults if specified container is empty).

load_all()

Loads all Settings from each Settings container.

private load_all() : void
Tags
since
1.5.0
Return values
void

Search results