PclZipUtilOptionText

The WordPress Core PclZipUtilOptionText function.

Description

PclZipUtilOptionText( $p_option ); 

Parameters (1)

0. $p_option
The option.

Usage

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

Defined (1)

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

/wp-admin/includes/class-pclzip.php  
  1. function PclZipUtilOptionText($p_option) 
  2.  
  3. $v_list = get_defined_constants(); 
  4. for (reset($v_list); $v_key = key($v_list); next($v_list)) { 
  5. $v_prefix = substr($v_key, 0, 10); 
  6. if (( ($v_prefix == 'PCLZIP_OPT') 
  7. || ($v_prefix == 'PCLZIP_CB_') 
  8. || ($v_prefix == 'PCLZIP_ATT')) 
  9. && ($v_list[$v_key] == $p_option)) { 
  10. return $v_key; 
  11.  
  12. $v_result = 'Unknown'; 
  13.  
  14. return $v_result;