<?php if(! defined('ABSPATH')) { return; }

/**
 * This file holds all methods hooked to WordPress' filters
 *
 * @package    Kallyas
 * @category   Filter Hooks
 * @author     Team Hogash
 * @since      3.8.0
 */

//<editor-fold desc=">>> WP HOOKS - FILTERS">

    /**
     * Add specific css class to active item
     */
    add_filter( 'nav_menu_css_class', 'zn_active_item_classes', 10, 2 );

    /**
     * Shortcodes fixer
     */
    add_filter( 'the_content', 'shortcode_empty_paragraph_fix' );
    /**
     * Wrap post images in HoverBorder Class
     */
    add_filter( 'the_content', 'zn_wrap_images' );

    /**
     * Remove the "Read More" tag from excerpt
     */
    add_filter( 'excerpt_more', 'clear_excerpt_more' );
    /**
     * Login Form - Stop redirecting if ajax is used
     */
    add_filter( "login_redirect", "zn_stop_redirecting", 10, 3 );
    /**
     * Check for boxed layout or full and add specific CSS class by filter
     */
    add_filter( 'body_class', 'zn_body_class_names' );
    /**
     * Fix for seo-workers not seeing multiple keyphrases
     */
    add_filter( 'language_attributes', array('WpkZn', 'smcLanguageAttributes'), 80 );
    /**
     * Extend the search query to include the Page Builder elements
     * @since v3.6.7
     */
    if(is_search()) {
        add_filter('pre_get_posts', array('WpkZn', 'updateSearchQuery'));
    }


//</editor-fold desc=">>> WP HOOKS - FILTERS">
