/* Author: GeoDirectory Team Author URI: http://wpgeodirectory.com To manage your codebase properly, you should place all your functions in 'lib' folder. Include each function file here. */ // Define the version number for quick access if (!defined('DIRECTORY_STARTER_VER')) define('DIRECTORY_STARTER_VER', '2.2.0.9'); require_once('vendor/autoload.php'); // Composer autoload require_once('lib/utils.php'); // Utility functions goes here require_once('lib/config.php'); // Configuration goes here require_once('lib/init.php'); // Theme setup functions goes here require_once('lib/cleanup.php'); // Cleanup functions goes here require_once('lib/scripts.php'); // CSS and JS includes goes here require_once('lib/nav.php'); // Nav menu functions goes here require_once('lib/sidebars.php'); // Register your sidebars here require_once('lib/widgets.php'); // Widget functions goes here require_once('lib/comments.php'); // Comments functions goes here require_once('lib/entrymeta.php'); // Entry meta functions goes here require_once('lib/custom.php'); // Any custom functions goes here require_once('lib/gd.php'); // GeoDirectory functions goes here require_once('lib/admin/customizer.php'); // Customizer settings require_once('lib/styles.php'); // CSS generated by customizer require_once('lib/dummy.php'); // Dummy post functions goes here require_once('lib/libraries/wp-bootstrap-comments.php'); // Bootstrap comments walker require_once('lib/class-downgrade.php'); // Downgrade theme functionality // ── Custom Includes ── // Review System if (file_exists(get_template_directory() . '/inc/review-functions.php')) { require_once get_template_directory() . '/inc/review-functions.php'; } // Review Admin Interface if (is_admin() && file_exists(get_template_directory() . '/inc/review-admin.php')) { require_once get_template_directory() . '/inc/review-admin.php'; } // Firm card helpers (URL + combined rating) — shared by all card surfaces require_once get_template_directory() . '/inc/firm-helpers.php'; // Closed-firm register (SRA disclosure IG-TC-1548) — "Closed" badge + dates require_once get_template_directory() . '/inc/closed-firms.php'; // Flat URLs for closed firms that have no location (/firm-name/) require_once get_template_directory() . '/inc/closed-firms-routing.php'; // Admin-only importer for disclosure-only closed firms if (is_admin()) { require_once get_template_directory() . '/inc/closed-firms-import.php'; } // Custom Roles & Access Control require_once get_template_directory() . '/inc/roles.php'; // Asset Enqueueing (CSS & JS) require_once get_template_directory() . '/inc/assets.php'; // AJAX Handlers require_once get_template_directory() . '/inc/ajax-handlers.php'; // Practice Area Helpers require_once get_template_directory() . '/inc/practice-areas.php'; // Practice Area Admin Fields (wp-admin category editor) if (is_admin()) { require_once get_template_directory() . '/inc/practice-areas-admin.php'; } // Homepage Customizer Settings require_once get_template_directory() . '/inc/customizer-homepage.php'; // Header & Footer Customizer Settings + Nav Menus require_once get_template_directory() . '/inc/class-header-nav-walker.php'; require_once get_template_directory() . '/inc/customizer-header-footer.php'; // URL Rewrites & Template Redirects require_once get_template_directory() . '/inc/rewrites.php'; // SEO Meta Tags & Structured Data require_once get_template_directory() . '/inc/seo.php'; // Canonical fix for firm listings (GeoDirectory default-location leak) require_once get_template_directory() . '/inc/seo-canonical-fix.php'; // Indexing gate - keeps thin imported firm listings out of the index and sitemap require_once get_template_directory() . '/inc/content-gate.php'; // Google Places API Integration require_once get_template_directory() . '/inc/google-places.php'; require_once get_template_directory() . '/inc/google-discover.php'; require_once get_template_directory() . '/inc/top-pages.php'; require_once get_template_directory() . '/inc/top-pages-index.php'; require_once get_template_directory() . '/inc/top-pages-content.php'; require_once get_template_directory() . '/inc/search-cache.php'; //require_once get_template_directory() . '/inc/search-ranking-migration.php'; // GeoDirectory Location Manager tweaks (removes the orphaned location-switcher modal) require_once get_template_directory() . '/inc/gd-location-tweaks.php'; // ── Filters ── // Hide default WordPress comments for GeoDirectory listings (use custom review system instead) function hide_geodir_default_comments($open, $post_id) { $post = get_post($post_id); if ($post && $post->post_type === 'gd_place') { return false; } return $open; } add_filter('comments_open', 'hide_geodir_default_comments', 10, 2); Comments on: DAMIAN J. PLANT AND CO https://www.reviewasolicitor.co.uk/places/warwickshire/kenilworth/damian-j-plant-and-co/ Fri, 07 Aug 2026 11:51:46 +0000 hourly 1 https://wordpress.org/?v=7.1.3