Preview: plugin.gdpr-framework.php
Size: 1.36 KB
/proc/self/root/home/nshryvcy/taramarriagebureau.com/wp-content/themes/planmyday/plugins/plugin.gdpr-framework.php
<?php
/* The GDPR Framework support functions
------------------------------------------------------------------------------- */
// Theme init
if (!function_exists('planmyday_gdpr_framework_theme_setup')) {
add_action( 'planmyday_action_before_init_theme', 'planmyday_gdpr_framework_theme_setup', 1 );
function planmyday_gdpr_framework_theme_setup() {
if (is_admin()) {
add_filter( 'planmyday_filter_required_plugins', 'planmyday_gdpr_framework_required_plugins' );
}
}
}
// Check if Instagram Widget installed and activated
if ( !function_exists( 'planmyday_exists_gdpr_framework' ) ) {
function planmyday_exists_gdpr_framework() {
return defined( 'GDPR_FRAMEWORK_VERSION' );
}
}
// Filter to add in the required plugins list
if ( !function_exists( 'planmyday_gdpr_framework_required_plugins' ) ) {
//Handler of add_filter('planmyday_filter_required_plugins', 'planmyday_gdpr_framework_required_plugins');
function planmyday_gdpr_framework_required_plugins($list=array()) {
if (false && in_array('wp_gdpr_compliance', (array)planmyday_storage_get('required_plugins')))
$list[] = array(
'name' => esc_html__('The GDPR Framework', 'planmyday'),
'slug' => 'gdpr-framework',
'required' => false
);
return $list;
}
}
Directory Contents
Dirs: 1 × Files: 18