PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 5.1.4
Jetpack – WP Security, Backup, Speed, & Growth v5.1.4
16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 14.1.1 14.2.2 14.3.1 All 501 releases
jetpack / modules / module-extras.php

module-extras.php in Jetpack – WP Security, Backup, Speed, & Growth 5.1.4, at modules/module-extras.php

45 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 * Load module code that is needed even when a module isn't active.
4 * For example, if a module shouldn't be activatable unless certain conditions are met, the code belongs in this file.
5 */
6
7 // Include extra tools that aren't modules, in a filterable way
8 $tools = array(
9 'theme-tools/social-links.php',
10 'holiday-snow.php', // Happy Holidays!!!
11 'theme-tools/random-redirect.php',
12 'theme-tools/featured-content.php',
13 'theme-tools/infinite-scroll.php',
14 'theme-tools/responsive-videos.php',
15 'theme-tools/site-logo.php',
16 'theme-tools/site-breadcrumbs.php',
17 'theme-tools/social-menu.php',
18 'theme-tools/content-options.php',
19 'custom-post-types/comics.php',
20 'custom-post-types/testimonial.php',
21 'custom-post-types/nova.php',
22 'theme-tools.php',
23 'seo-tools/jetpack-seo-utils.php',
24 'seo-tools/jetpack-seo-titles.php',
25 'seo-tools/jetpack-seo-posts.php',
26 'verification-tools/verification-tools-utils.php',
27 );
28
29 /**
30 * Filter extra tools (not modules) to include.
31 *
32 * @since 2.4.0
33 *
34 * @param array $tools Array of extra tools to include.
35 */
36 $jetpack_tools_to_include = apply_filters( 'jetpack_tools_to_include', $tools );
37
38 if ( ! empty( $jetpack_tools_to_include ) ) {
39 foreach ( $jetpack_tools_to_include as $tool ) {
40 if ( file_exists( JETPACK__PLUGIN_DIR . '/modules/' . $tool ) ) {
41 require_once( JETPACK__PLUGIN_DIR . '/modules/' . $tool );
42 }
43 }
44 }
45