1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php
/**
* EPL Extensions Compatibility
*
* @package EPL
* @subpackage Compatibility/Extensions
* @copyright Copyright (c) 2014, Merv Barrett
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 1.0
*/
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Staff Directory Compatibility.
*
* @since 1.0
*/
function epl_sd_author_box_compat() {
if ( has_action( 'epl_single_author', 'epl_sd_advanced_author_box' ) || has_action( 'epl_single_author', 'epl_sd_advanced_author_box_tabs' ) ) {
remove_action( 'epl_single_author', 'epl_property_author_box' );
}
}
add_action( 'init', 'epl_sd_author_box_compat' );