woocommerce_log_directory

woocommerce_log_directory

Appears in:
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.8.3

apply_filters('woocommerce_log_directory') is found 1 times:

  • /src/Internal/Admin/Logging/Settings.php line 70
    			 * @param string $dir The full directory path, with trailing slash.
    			 *
    			 * @since 8.8.0
    			 */
    			$dir = apply_filters( 'woocommerce_log_directory', $upload_dir['basedir'] . '/wc-logs/' );
    		}
    
    		$dir = trailingslashit( $dir );
    
    		$realpath = realpath( $dir );
    		if ( false === $realpath ) {