File Editor
Directories:
.. (Back)
ai-app
cloud
common
core
epanel
fonts
framework
images
includes
lang
scripts
Files:
changelog.txt
comments.php
footer.php
functions.php
header.php
home.php
index-content.php
index.php
module-ads.php
module-featured-posts-slider.php
module-posts-blog-feed-loop.php
module-posts-blog-feed.php
module-posts-carousel.php
module-posts-content.php
module-posts.php
module-tabbed-posts-tab.php
module-tabbed-posts.php
options_extra.php
page-template-authors.php
page-template-blog-feed.php
page-template-contact.php
page-template-fullwidth.php
page-template-member.php
page-template-portfolio.php
page-template-sitemap.php
page-template-timeline.php
page.php
post-top-content.php
post_thumbnails_extra.php
sidebar-footer.php
sidebar.php
single-et_pb_layout.php
single-post.php
single-project.php
single.php
style-cpt-rtl.min.css
style-cpt.min.css
style-rtl.min.css
style-static-cpt-rtl.min.css
style-static-cpt.min.css
style-static-rtl.min.css
style-static.min.css
style.css
style.min.css
theme-after-wrappers.php
theme-before-wrappers.php
theme-footer.php
theme-header.php
timeline-posts-content.php
Create New File
Create
Edit File: functions.php
<?php // Prevent file from being loaded directly if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); } /** * Extra Theme * * functions.php * * Load & setup theme files/functions */ define( 'EXTRA_LAYOUT_POST_TYPE', 'layout' ); define( 'EXTRA_PROJECT_POST_TYPE', 'project' ); define( 'EXTRA_PROJECT_CATEGORY_TAX', 'project_category' ); define( 'EXTRA_PROJECT_TAG_TAX', 'project_tag' ); define( 'EXTRA_RATING_COMMENT_TYPE', 'rating' ); $et_template_directory = get_template_directory(); // Load Framework require $et_template_directory . '/framework/functions.php'; // Load theme core functions require $et_template_directory . '/includes/core.php'; require $et_template_directory . '/includes/plugins-woocommerce-support.php'; require $et_template_directory . '/includes/plugins-seo-support.php'; require $et_template_directory . '/includes/plugins-eventon-support.php'; require $et_template_directory . '/includes/plugins-lifterlms-support.php'; require $et_template_directory . '/includes/activation.php'; require $et_template_directory . '/includes/customizer.php'; require $et_template_directory . '/includes/builder-integrations.php'; require $et_template_directory . '/includes/block-editor-integration.php'; require $et_template_directory . '/includes/layouts.php'; require $et_template_directory . '/includes/template-tags.php'; require $et_template_directory . '/includes/ratings.php'; require $et_template_directory . '/includes/projects.php'; require $et_template_directory . '/includes/widgets.php'; require $et_template_directory . '/includes/et-social-share.php'; require $et_template_directory . '/includes/theme-builder.php'; function load_extra_admin() { // Load admin only resources if ( is_admin() ) { $et_template_directory = get_template_directory(); require $et_template_directory . '/includes/admin/admin.php'; require $et_template_directory . '/includes/admin/category.php'; } } // Load admin files after `extra_setup_builder` at `init` hook with 0 priority, to make builder core functions available in admin functions. add_action( 'init', 'load_extra_admin', 10 ); /** * Extra Support Center * * @since ?? */ function et_add_extra_support_center() { $support_center = new ET_Core_SupportCenter( 'extra_theme' ); $support_center->init(); } add_action( 'init', 'et_add_extra_support_center' );
Save Changes
Rename File
Rename