at path:
ROOT
/
wp-content
/
plugins
/
kadu-plugin
/
kadu-plugin.php
run:
R
W
Run
assets
DIR
2025-12-13 10:14:04
R
W
Run
elementor
DIR
2025-12-13 10:17:32
R
W
Run
inc
DIR
2025-12-13 10:17:32
R
W
Run
languages
DIR
2025-12-13 10:17:32
R
W
Run
lib
DIR
2025-12-13 10:14:04
R
W
Run
index.php
26 By
2024-10-16 22:18:55
R
W
Run
Delete
Rename
kadu-plugin.php
3.97 KB
2024-10-16 22:18:55
R
W
Run
Delete
Rename
error_log
up
📄
kadu-plugin.php
Save
<?php /* Plugin Name: Kadu Plugin Plugin URI: https://themeforest.net/user/themexriver Description: After install the kadu WordPress Theme, you must need to install this "kadu-plugin" first to get all functions of kadu WP Theme. Author: Raziul Islam Author URI: http://themexriver.com/ Version: 1.0.0 Text Domain: kadu-plugin */ if ( !defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly. } /** * Define Core Path */ define( 'KADU_VERSION', '1.0.0' ); define( 'KADU_DIR_PATH',plugin_dir_path(__FILE__) ); define( 'KADU_DIR_URL',plugin_dir_url(__FILE__) ); define( 'KADU_INC_PATH', KADU_DIR_PATH . '/inc' ); define( 'KADU_PLUGIN_IMG_PATH', KADU_DIR_URL . '/assets/img' ); /** * Css Framework Load */ if ( file_exists(KADU_DIR_PATH.'/lib/codestar-framework/codestar-framework.php') ) { require_once KADU_DIR_PATH.'/lib/codestar-framework/codestar-framework.php'; } /** * Elementor - Remove Font Awesome */ add_action( 'elementor/frontend/after_register_styles',function() { foreach( [ 'solid', 'regular', 'brands' ] as $style ) { wp_deregister_style( 'elementor-icons-fa-' . $style ); } }, 20 ); /** * Register Custom Widget * * @return void */ function kadu_cw_wisget(){ register_widget( 'kadu_Recent_Posts' ); } add_action('widgets_init', 'kadu_cw_wisget'); /** * Deregister Elementor Animation * * @return void */ function kadu_de_reg() { wp_deregister_style( 'e-animations' ); } add_action( 'wp_enqueue_scripts', 'kadu_de_reg' ); /** * Enqueue Admin Style * * @return void */ function kadu_enqueue_admin_customstyle() { wp_enqueue_style( 'admin-style', KADU_DIR_URL . 'assets/css/admin-style.css', false, '1.0.0' ); } add_action( 'admin_enqueue_scripts', 'kadu_enqueue_admin_customstyle' ); /** * Enqueue Admin Style * * @return void */ function kadu_enqueue_customstyle() { wp_enqueue_script( 'kadu-addon-core', KADU_DIR_URL . '/assets/js/core.js', array('jquery'), '1.0', true ); } add_action( 'wp_enqueue_scripts', 'kadu_enqueue_customstyle' ); /** * Dequeue Elemenotr Swiper Slider * * @return [type] [return description] */ function dequeue_wpml_styles(){ wp_dequeue_style( 'swiper' ); wp_deregister_style( 'swiper' ); wp_dequeue_script( 'swiper' ); wp_deregister_script( 'swiper' ); } add_action( 'wp_enqueue_scripts', 'dequeue_wpml_styles', 20 ); /** * Script Remove * * @return [type] [return description] */ function remove_jquery_sticky() { wp_dequeue_script( 'swiper' ); wp_deregister_script( 'swiper' ); } add_action( 'elementor/frontend/after_register_scripts', 'remove_jquery_sticky' ); /** * Custom Widget */ include_once KADU_INC_PATH . "/custom-widget/recent-post.php"; /** * Themeoption */ include_once KADU_INC_PATH . "/kadu-plugin-helper.php"; /** * Custom Metabox */ include_once KADU_INC_PATH . "/options/theme-metabox.php"; /** * Themeoption */ include_once KADU_INC_PATH . "/options/theme-option.php"; /** * Helper Function */ include_once KADU_INC_PATH . "/helper.php"; /** * Codestar Custom Icon Liberary */ include_once KADU_INC_PATH . "/csf-custom-icon.php"; /** * Elementor Custom Icon */ include_once KADU_INC_PATH . "/kadu-icon.php"; /** * Custom Template CPT */ include_once KADU_INC_PATH . "/post-type/template.php"; /** * Custom Template CPT */ include_once KADU_INC_PATH . "/post-type/listing_taxnomy.php"; /** * Elementor Configuration */ include_once KADU_DIR_PATH . "/elementor/elementor-init.php"; /** * Contact Form 7 Autop Remove */ add_filter('wpcf7_autop_or_not', '__return_false'); // functin auth_url function kadu_auth_url(){ $is_tutor_login_disabled = ! tutor_utils()->get_option( 'enable_tutor_native_login', null, true, true ); $auth_url = $is_tutor_login_disabled ? ( isset( $_SERVER['REQUEST_SCHEME'] ) ? wp_login_url( tutor_utils()->get_current_url() ) : '' ) : ''; }