Mods::get( string $key, mixed $default = false )
Get theme mod.
Parameters
- $key
-
(Required) Key value.
- $default
-
(Optional) Default value.
Default value: false
Return
(mixed) Mod value.
Source
File: inc/core/settings/mods.php
Expand full source code Collapse full source code View on Github
Related
Uses
Uses | Description |
---|---|
inc/core/settings/mods.php: Mods::defaults() |
Forced defaults. |
Used By
Used By | Description |
---|---|
includes/modules/header_footer_grid/components/advanced_search_core.php: Advanced_Search_Core::posts_search() |
Filters the search SQL that is used in the WHERE clause of WP_Query. |
includes/modules/header_footer_grid/components/advanced_search_core.php: Advanced_Search_Core::add_search_options() |
Add the restrictions for search form. |
includes/modules/header_footer_grid/components/advanced_search_core.php: Advanced_Search_Core::get_search_post_types() |
Get advanced search post types. |
includes/modules/header_footer_grid/components/advanced_search_core.php: Advanced_Search_Core::posts_join() |
Filters the JOIN clause of the query. |
includes/modules/header_footer_grid/submenu/submenu.php: Submenu::get_animation_style() |
Get submenu animation style. |
includes/modules/header_footer_grid/submenu/submenu.php: Submenu::get_submenu_icon_style() |
Get submenu icon style. |
includes/modules/header_footer_grid/submenu/submenu.php: Submenu::get_submenu_style() |
Get submenu style. |
includes/modules/header_footer_grid/submenu/submenu.php: Submenu::filter_additional_menu_container_class() |
Filter submenu container classes to add skin mode. |
includes/modules/header_footer_grid/submenu/submenu.php: Submenu::filter_additional_menu_class() |
Add additional class for the menu animation. |
includes/modules/header_footer_grid/submenu/submenu.php: Submenu::sm_icon_settings() |
Implement sumbenu icon settings |
includes/modules/header_footer_grid/submenu/customizer/component_settings.php: Component_Settings::add_sm_item_style_settings() |
Add customizer settings for submenu item style. |
includes/modules/woocommerce_booster/views/shop_product.php: Shop_Product::sparks_neve_sale_tag_position() |
Sparks Neve sale tag position (inject sale tag position to Sparks via WP filter.) |
header-footer-grid/Core/Components/Button.php: Button::toggle_style() |
Get CSS to use as inline script |
inc/views/pluggable/metabox_settings.php: Metabox_Settings::add_button_shadow_styles() |
Add button shadow styles if used. |
header-footer-grid/Core/Components/MenuIcon.php: MenuIcon::toggle_style() |
Get CSS to use as inline script |
header-footer-grid/Core/Components/MenuIcon.php: MenuIcon::add_menu_icon_classes() |
Filter classes for menu icon. |
includes/modules/post_type_enhancements/views/blog_pro_cpt_view.php: Blog_Pro_CPT_View::register_dynamic_theme_mods() |
Register dynamic filters for passed custom post type. |
includes/modules/post_type_enhancements/views/layout_cpt_view.php: Layout_CPT_View::get_alignment_classes() |
Get alignment classes for the title on the cover layout. |
includes/modules/post_type_enhancements/views/layout_cpt_view.php: Layout_CPT_View::custom_post_container_styles() |
Filter container style for supported custom post types. |
includes/modules/post_type_enhancements/views/layout_cpt_view.php: Layout_CPT_View::render_post_meta() |
Render the post meta. |
includes/modules/post_type_enhancements/views/layout_cpt_view.php: Layout_CPT_View::render_cover_header() |
Render the cover layout on single post. |
includes/modules/post_type_enhancements/views/layout_cpt_view.php: Layout_CPT_View::register_dynamic_theme_mods() |
Register filters for dynamic mods. |
includes/modules/post_type_enhancements/views/layout_cpt_view.php: Layout_CPT_View::get_content_order() |
Get elements order. |
includes/modules/post_type_enhancements/views/layout_cpt_archive_view.php: Layout_CPT_Archive_View::register_dynamic_theme_mods() |
Register filters for dynamic mods. |
includes/modules/post_type_enhancements/model/cpt_model.php: CPT_Model::is_cover_layout() |
Returns true if cover layout is enabled for this model. |
includes/modules/post_type_enhancements/model/cpt_model.php: CPT_Model::is_boxed_title() |
Function used for active_callback control property for boxed title. |
includes/modules/post_type_enhancements/model/cpt_model.php: CPT_Model::is_custom_layout_enabled() |
Returns true if custom layout is enabled for this model. |
includes/modules/post_type_enhancements/model/cpt_model.php: CPT_Model::is_custom_layout_archive_enabled() |
Returns true if custom layout is enabled for this model. |
includes/modules/post_type_enhancements/customizer/blog_pro_cpt.php: Blog_Pro_CPT::is_covers_layout() |
Checks if is covers layout blog |
includes/modules/post_type_enhancements/customizer/blog_pro_cpt.php: Blog_Pro_CPT::is_grid_layout() |
Checks if is grid layout blog |
includes/modules/post_type_enhancements/customizer/blog_pro_cpt.php: Blog_Pro_CPT::add_blog_pro_post_meta_controls() |
Register Blog Pro post meta controls |
includes/modules/post_type_enhancements/customizer/blog_pro_cpt.php: Blog_Pro_CPT::add_blog_pro_layout_controls() |
Register Blog Pro layout controls. |
includes/modules/post_type_enhancements/customizer/blog_pro_cpt.php: Blog_Pro_CPT::is_list_layout() |
Checks if is list layout blog |
includes/modules/post_type_enhancements/customizer/blog_pro_cpt.php: Blog_Pro_CPT::add_ordering_content_controls() |
Register Blog Pro ordering content controls. |
includes/modules/post_type_enhancements/customizer/layout_cpt_archive.php: Layout_CPT_Archive::should_show_masonry() |
Callback to show masonry control. |
includes/modules/post_type_enhancements/customizer/layout_cpt_archive.php: Layout_CPT_Archive::should_show_meta_order() |
Callback to show the meta order control. |
includes/modules/post_type_enhancements/customizer/layout_cpt_archive.php: Layout_CPT_Archive::add_post_meta_controls() |
Add controls for post meta. |
includes/modules/post_type_enhancements/customizer/layout_cpt_archive.php: Layout_CPT_Archive::add_content_ordering_controls() |
Add content ordering and controls. |
includes/modules/post_type_enhancements/customizer/layout_cpt_archive.php: Layout_CPT_Archive::add_layout_controls() |
Add blog layout controls. |
includes/modules/post_type_enhancements/customizer/layout_cpt_single.php: Layout_CPT_Single::sharing() |
Add single post sharing controls. |
includes/modules/post_type_enhancements/customizer/layout_cpt_single.php: Layout_CPT_Single::related_posts() |
Related Custom Posts customizer controls |
includes/modules/post_type_enhancements/customizer/layout_cpt_single.php: Layout_CPT_Single::author_box() |
Add author box settings. |
includes/modules/post_type_enhancements/customizer/layout_cpt_single.php: Layout_CPT_Single::header_layout() |
Add header layout controls. |
includes/modules/post_type_enhancements/customizer/layout_cpt_single.php: Layout_CPT_Single::post_meta() |
Add post meta controls. |
includes/modules/post_type_enhancements/customizer/layout_cpt_single.php: Layout_CPT_Single::comments() |
Add comments controls. |
includes/modules/post_type_enhancements/customizer/layout_cpt_single.php: Layout_CPT_Single::element_is_enabled() |
Active callback for sharing controls. |
header-footer-grid/Core/Components/Logo.php: Logo::filter_logo_variants() |
Generate the variants for the Logo |
header-footer-grid/Core/Components/Logo.php: Logo::update_logo_theme_mod() |
Updates the theme mode JSON based on the custom logo value. |
includes/modules/header_footer_grid/components/logo.php: Logo::filter_logo_variants() |
Generate the variants for the Logo |
header-footer-grid/Core/Components/PaletteSwitch.php: PaletteSwitch::toggle_elementor_css() |
Adds the palette variants to elementor |
header-footer-grid/Core/Components/PaletteSwitch.php: PaletteSwitch::get_light_dark_palettes() |
Utility method to return light and dark palette variants. |
inc/views/font_manager.php: Font_Manager::get_body_font_family() |
Get body font family. |
header-footer-grid/Core/Components/PaletteSwitch.php: PaletteSwitch::add_settings() |
PaletteSwitch register settings controls |
header-footer-grid/Core/Components/PaletteSwitch.php: PaletteSwitch::toggle_script() |
Get JS contents from file to use as inline script. |
header-footer-grid/Core/Components/PaletteSwitch.php: PaletteSwitch::toggle_css() |
Methods used to filter CSS global colors |
inc/core/styles/css_prop.php: Css_Prop::get_unit_responsive() |
Get suffix from controls that store data in the following format: { desktop: value, tablet: value, mobile: value, deskotp-unit: px, tablet-unit: px, mobile-unit: px } |
inc/core/styles/css_prop.php: Css_Prop::get_suffix_responsive() |
Get suffix from controls that store data in the following format: { desktop: value, tablet: value, mobile: value, suffix : { deskop: px, tablet: px, mobile: px} } |
inc/core/styles/css_prop.php: Css_Prop::get_suffix() |
Get suffix for generic settings. |
inc/core/styles/frontend.php: Frontend::setup_blog_meta() |
Add css for blog meta. |
includes/modules/blog_pro/dynamic_style.php: Dynamic_Style::add_legacy_subscribers() |
Add dynamic style subscribers. |
includes/modules/blog_pro/customizer/single_post.php: Single_Post::sharing() |
Add single post sharing controls. |
includes/modules/woocommerce_booster/dynamic_style.php: Dynamic_Style::legacy_checkout_page_subscribers() |
Legacy dynamic style for the checkout page. |
includes/modules/woocommerce_booster/dynamic_style.php: Dynamic_Style::legacy_single_product_catalog_subscribers() |
Legacy dynamic style for single product and catalog page. |
includes/modules/woocommerce_booster/dynamic_style.php: Dynamic_Style::single_product_catalog_subscribers() |
Dynamic style for single product and catalog page. |
includes/modules/scroll_to_top/dynamic_style.php: Dynamic_Style::add_legacy_subscribers() |
Add legacy dynamic style subscribers. |
header-footer-grid/Core/Components/Nav.php: Nav::add_settings() |
Called to register component controls. |
header-footer-grid/Core/Settings/Manager.php: Manager::get() |
Get setting value based on context. |
inc/views/pluggable/metabox_settings.php: Metabox_Settings::editor_content_width() |
Set editor width. |
inc/views/pluggable/metabox_settings.php: Metabox_Settings::get_current_layout() |
Return container type for the selected post. |
inc/admin/metabox/manager.php: Manager::meta_sidebar_script_enqueue() |
Register the metabox sidebar. |
inc/core/settings/mods.php: Mods::to_json() |
Get and transform setting to json. |
inc/core/settings/mods.php: Mods::get_typography_defaults() |
Helper method to get defaults for typography. |
inc/core/styles/css_prop.php: Css_Prop::transform() |
Transform rule meta into CSS rule string. |
inc/core/styles/dynamic_selector.php: Dynamic_Selector::get_value() |
Get dynamic value. |
inc/core/styles/frontend.php: Frontend::setup_layout_subscribers() |
Setup settings subscribers for layout. |
includes/modules/blog_pro/dynamic_style.php: Dynamic_Style::add_hover_class() |
Add class to posts to only show on hover. |
includes/modules/blog_pro/dynamic_style.php: Dynamic_Style::add_subscribers() |
Add dynamic style subscribers. |
includes/modules/blog_pro/customizer/blog_pro.php: Blog_Pro::add_blog_layout_controls() |
Add blog layout controls. |
includes/modules/header_footer_grid/components/logo.php: Logo::add_settings() |
Called to register component controls. |
includes/modules/woocommerce_booster/dynamic_style.php: Dynamic_Style::checkout_page_subscribers() |
Dynamic style for the checkout page. |
includes/modules/scroll_to_top/dynamic_style.php: Dynamic_Style::add_subscribers() |
Add dynamic style subscribers. |