Preview: plugin.elegro-payment.php
Size: 1.29 KB
/home/nshryvcy/taramarriagebureau.com/wp-content/themes/planmyday/plugins/plugin.elegro-payment.php
<?php
/* Instagram Feed support functions
------------------------------------------------------------------------------- */
// Theme init priorities:
// 9 - register other filters (for installer, etc.)
if (!function_exists('planmyday_elegro_payment_theme_setup')) {
add_action( 'planmyday_action_before_init_theme', 'planmyday_elegro_payment_theme_setup', 1 );
function planmyday_elegro_payment_theme_setup() {
if (is_admin()) {
add_filter( 'planmyday_filter_required_plugins', 'planmyday_elegro_payment_required_plugins' );
}
}
}
// Filter to add in the required plugins list
if ( !function_exists( 'planmyday_elegro_payment_required_plugins' ) ) {
function planmyday_elegro_payment_required_plugins($list=array()) {
if (in_array('elegro-payment', (array)planmyday_storage_get('required_plugins'))) {
$list[] = array(
'name' => esc_html__('Elegro Payment', 'planmyday'),
'slug' => 'elegro-payment',
'required' => false
);
}
return $list;
}
}
// Check if Instagram Feed installed and activated
if ( !function_exists( 'planmyday_exists_elegro_payment' ) ) {
function planmyday_exists_elegro_payment() {
return function_exists('init_Elegro_Payment');
}
}
?>
Directory Contents
Dirs: 1 × Files: 18