https://t.me/RX1948
Server : Apache
System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64
User : plutus ( 1007)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/plutus/public_html/wp-content/themes/vrm/framework/hooks/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/plutus/public_html/wp-content/themes/vrm/framework/hooks/remove-actions.php
<?php
/**
 * Remove Actions.
 *
 *
 * @package Total WordPress Theme
 * @subpackage Hooks
 * @version 5.0
 */

defined( 'ABSPATH' ) || exit;

/**
 * Helper function to remove all actions.
 */
function wpex_remove_actions() {
	$hooks = wpex_theme_hooks();
	foreach ( $hooks as $section => $array ) {
		if ( ! empty( $array['hooks'] ) && is_array( $array['hooks'] ) ) {
			foreach ( $array['hooks'] as $hook ) {
				remove_all_actions( $hook, false );
			}
		}
	}
}

/**
 * Remove default theme actions.
 */
function wpex_maybe_modify_theme_actions() {

	if ( is_page_template( 'templates/landing-page.php' ) ) {
		wpex_remove_actions(); return;
	}

}
add_action( 'template_redirect', 'wpex_maybe_modify_theme_actions' );

https://t.me/RX1948 - 2025