Module
Class Module – main class for the module Enqueue scripts, style Render functions
Source
File: includes/modules/blog_pro/module.php
Expand full source code Collapse full source code View on Github
Methods
- add_customizer_classes — Add customizer classes.
- add_post_infinite_scroll — Method that handles the infinite scroll on single post.
- add_pro_features — Add pro features in Neve meta sidebar.
- add_read_time_magic_tag — Filter magic tags array.
- add_reading_time_meta — Add estimated reading time in meta fields.
- add_reading_time_meta_block_editor — Add Reading time control in Neve Meta Sidebar.
- adjacent_post_sort — Change the query SORT part for adjacent posts based on neve_posts_order option.
- adjacent_post_where — Change the query WHERE part for adjacent posts based on neve_posts_order option.
- after_comment_area — Close content area wrapper.
- author_biography_render — Render author biography
- before_comment_area — Render toggle button and wrap comment area content.
- calculate_images — Adds additional reading time for images
- count_post_words — Count words for every post and store the number in a meta field.
- custom_allowed_protocols — Add extra protocols to list of allowed protocols.
- define_module_properties — Define module properties.
- enqueue_style — Enqueue module styles
- get_acf_value — Get ACF value based on the field type.
- get_number_of_words — Get number of words for a post.
- get_read_more_args — Get read more text options from customizer
- has_single_compatibility — Do we have the single compatibility enabled?
- meta_custom_separator — Change metadata separator according to the customizer setting
- order_posts — Order posts by date ( asc / desc ) or by last edited.
- reading_time_meta_action — Control the reading time from post meta.
- related_posts_excerpt_length — Custom excerpt length for related posts
- related_posts_render — Render related posts
- render_custom_meta — Render custom meta data.
- render_read_time_meta — Output function for post read time.
- render_related_posts_meta — Render the related post meta.
- render_sharing_icons — Render sharing icons.
- run_module — Run Blog Pro Module
- should_load — Check if module should load.
- update_number_of_words — Update number of words on post save.