| Server IP : 27.254.86.99 / Your IP : 216.73.216.234 Web Server : LiteSpeed System : Linux wp1.hostneverdie.com 4.18.0-553.46.1.lve.el8.x86_64 #1 SMP Wed Apr 2 11:16:45 UTC 2025 x86_64 User : qtccargo ( 1078) PHP Version : 8.2.29 Disable Function : apache_child_terminate, apache_setenv, define_syslog_variables, escapeshellarg, escapeshellcmd,exec, fp, fput, highlight_file, ini_alter, ini_restore, inject_code, passthru,phpAds_remoteInfo, phpAds_XmlRpc,phpAds_xmlrpcDecode, phpAds_xmlrpcEncode, popen, posix_getpwuid, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid,posix_setuid, posix_setuid, posix_uname,proc_open,proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, syslog, system, xmlrpc_entity_decode, show_source,pcntl_exec,virtual,suexec,dbmopen,dl,disk_free_space,diskfreespace,leak MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/qtccargo/public_html/wp-content/plugins/sth-testimonial/inc/ |
Upload File : |
<?php
/**
* Display Tesimonial on frontend
*
* @package STH Tesimonial
*/
/**
* Load template file for team_member single
* Check if a custom template exists in the theme folder,
* if not, load template file in plugin
*
* @since 1.0.0
*
* @param string $template Template name with extension
*
* @return string
*/
function sth_testimonial_get_template( $template ) {
if ( $theme_file = locate_template( array( $template ) ) ) {
$file = $theme_file;
} else {
$file = STH_TESTIMONIAL_DIR . 'template/' . $template;
}
return apply_filters( __FUNCTION__, $file, $template );
}
/**
* Load template file for team member single
*
* @since 1.0.0
*
* @param string $template
*
* @return string
*/
function sth_testimonial_template_include( $template ) {
if ( is_singular( 'testimonial' ) ) {
return sth_testimonial_get_template( 'single-testimonial.php' );
}
return $template;
}
add_filter( 'template_include', 'sth_testimonial_template_include' );