HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/doccure-wp/wp-content/plugins/doccure/helpers/register.php
<?php
/**
 * Register all email templates
 * @since    1.0.0
 */

$dir = doccureGlobalSettings::get_plugin_path();
$scan_PostTypes = glob("$dir/helpers/templates/*.*");
if( !empty( $scan_PostTypes ) ){
	foreach ($scan_PostTypes as $filename) {
		$file = pathinfo($filename);
    	if( !empty( $file['filename'] ) ){
			@include doccure_template_exsits( 'helpers/templates/'.$file['filename'] );
		} 
	}
}