Module
Performance Module Class
Source
File: includes/modules/performance/module.php
Expand full source code Collapse full source code View on Github
Methods
- add_content_visible_classes — Used to append additional classes for contents visible.
- add_filters_for_elements_order — This adds additional filters for specific orders based on content position.
- add_product_filter_cv_class — Method to add the product filter class when needed.
- after_post_entry — Increment post count from loop.
- after_product_entry — Increment post count from loop.
- define_module_properties — Define module properties.
- disable_embeds_rewrites — Disable embeds rewrite rule.
- filter_block — Add content-visible class to core blocks.
- filter_remove_dns_prefetch — Remove specific url from DNS prefetch list.
- get_default_module_status — Set the default state for this module as off by default.
- get_module_option — Method to return module options
- is_custom_layout_hook_allowed — Only allow specific hooks to wrap content.
- lazyload_footer_row_classes — Filter footer row classes and add lazyload content classes.
- module_css — Add module css.
- performance_post_classes — Add content-visible for post list
- performance_product_classes — Add content-visible for product list
- process_content_blocks — Wrapper to add additional filter for block processing Reported and suggested here: https://github.com/WordPress/gutenberg/issues/17358 Based on https://github.com/WordPress/WordPress/blob/965fcddcf68cf4fd122ae24b992e242dfea1d773/wp-includes/blocks.php#L755
- remove_embeds_from_tinymce — Remove wpembed option from tinymce.
- remove_emoji_dns_prefetch — Remove emoji DNS prefetch.
- remove_emoji_from_tinymce — Remove wpemoji option from tinymce.
- remove_product_filter_cv_class — Method to remove the product filter class when needed.
- run_module — Run Module
- run_on_init — Method called on `init` action
- should_load — Check if module should load.
- str_replace_first_only — Replace only first occurrence.
- wrap_action_content_end — Wrap tag end
- wrap_action_content_start — Wrap tag start
- wrap_woo_content_end — Wrap WooCommerce section tag end
- wrap_woo_content_start — Wrap WooCommerce section tag start