wsoe_htaccess_exists

Checks if the .htaccess file exists in wp-content/uploads/wsoe.

Description

wsoe_htaccess_exists(); 

Usage

  1. if ( !function_exists( 'wsoe_htaccess_exists' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce-simply-order-export/lib/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = wsoe_htaccess_exists(); 
  7.  

Defined (1)

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

/lib/functions.php  
  1. function wsoe_htaccess_exists() { 
  2.  
  3. $upload_path = wsoe_upload_dir(); 
  4.  
  5. return file_exists( $upload_path . '/.htaccess' );