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