codepress_get_lang

Determines the language to use for CodePress syntax highlighting.

Description

codepress_get_lang( (string) $filename ); 

Parameters (1)

0. $filename (string)
The filename.

Usage

  1. if ( !function_exists( 'codepress_get_lang' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4. // The filename. 
  5. $filename = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = codepress_get_lang($filename); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function codepress_get_lang( $filename ) { 
  2. _deprecated_function( __FUNCTION__, '3.0.0' );