Submit
Path:
~
/
home
/
getwphos
/
public_html
/
almajd14
/
wp-content
/
plugins
/
halstein-core
/
inc
/
performance
/
File Content:
helper.php
<?php if ( ! function_exists( 'halstein_core_add_performance_panel_into_customizer' ) ) { /** * Function that add module panel into customizer options * * @param array $panels * * @return array */ function halstein_core_add_performance_panel_into_customizer( $panels ) { $panels[] = 'halstein_core_performance_panel'; return $panels; } add_filter( 'qode_framework_filter_customizer_panels', 'halstein_core_add_performance_panel_into_customizer' ); } if ( ! function_exists( 'halstein_core_performance_get_option_value' ) ) { /** * Function check is item enabled throw customizer options * * @param string $item - module path * @param string $option - customizer option name * * @return bool */ function halstein_core_performance_get_option_value( $item, $option ) { $value = false; if ( ! empty( $item ) && ! empty( $option ) ) { $option_name = $option . str_replace( '-', '_', basename( $item ) ); $value = qode_framework_get_option_value( '', 'customizer', $option_name ); } return $value; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
dashboard
---
0755
helper.php
1059 bytes
0644
include.php
182 bytes
0644
N4ST4R_ID | Naxtarrr