HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux sa-dev.otherchirps.net 5.15.0-139-generic #149-Ubuntu SMP Fri Apr 11 22:06:13 UTC 2025 x86_64
User: www-data (33)
PHP: 8.0.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wp-content/themes/kalium/includes/hooks/other-template-hooks.php
<?php
/**
 * Kalium WordPress Theme
 *
 * Other hooks functions.
 *
 * @author Laborator
 * @link   https://kaliumtheme.com
 */
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Direct access not allowed.
}

/**
 * Remove multiple current menu items with hashtags
 */
add_filter( 'nav_menu_css_class', '_kalium_unique_hashtag_url_base_menu_item', 10, 2 );
add_filter( 'wp_nav_menu_args', '_kalium_unique_hashtag_url_base_reset', 10 );

/**
 * Fix for Post Link Plus when WPML is active
 */
add_filter( 'kalium_post_link_plus_result', '_kalium_post_link_plus_result_mapper', 10 );

/**
 * Set WooCommerce Product Filter to use as theme.
 */
add_filter( 'svx_plugins_settings', '_kalium_prdctfltr_set_as_theme', 100 );

/**
 * Warn users to install ACF5 Pro
 */
add_action( 'admin_init', '_kalium_acf5_warning_init', 10 );

/**
 * Product Filter plugin AJAX fix with WPBakery
 */
add_action( 'before_prdctfltr_init', '_kalium_prdctfltr_map_wpb_shortcodes_fix' );

/**
 * Go to Top feature.
 */
add_action( 'wp_footer', '_kalium_go_to_top_link' );

/**
 * Maintenance mode page.
 */
add_action( 'template_redirect', '_kalium_page_maintenance_mode' );

/**
 * Coming soon or maintenance mode.
 */
add_action( 'template_redirect', '_kalium_coming_soon_mode' );

/**
 * Google Meta Theme Color (Phone).
 */
add_action( 'wp_head', '_kalium_google_theme_color' );

/**
 * Holiday season text display.
 */
add_action( 'admin_head', '_kalium_holiday_season_display' );

/**
 * Favicon from theme options.
 */
add_action( 'wp_head', '_kalium_theme_options_favicon' );

/**
 * Text line below user name on single post page.
 */
add_action( 'personal_options', '_kalium_user_custom_text' );
add_action( 'personal_options_update', '_kalium_user_custom_text_save' );
add_action( 'edit_user_profile_update', '_kalium_user_custom_text_save' );
add_filter( 'kalium_blog_single_post_author_info_subtitle', '_kalium_user_custom_text_display' );

/**
 * Fullscreen menu background.
 */
add_action( 'wp_footer', '_kalium_fullscreen_menu_background' );


/**
 * Toggle like for post item.
 */
add_action( 'wp_ajax_kalium_post_like', '_kalium_update_likes_for_post' );
add_action( 'wp_ajax_nopriv_kalium_post_like', '_kalium_update_likes_for_post' );