wpml_current_language, null
wpml_current_language, null
Appears in: siteorigin-panels.2.36.0
Hook Type: filter
Displaying hooks found in version: siteorigin-panels.2.36.0apply_filters('wpml_current_language, null') is found 1 times:
- /inc/sidebars-emulator.php line 78
// Detect current page id using path. if ( ! empty( $current_url['path'] ) ) { // Check if WPML is running. $wpml_language = apply_filters( 'wpml_current_language', null ); if ( ! empty( $wpml_language ) ) { // Remove the current language code from path to avoid 404. $current_url['path'] = preg_replace( "/^\/$wpml_language\//", '/', $current_url['path'], 1 ); }