| Server IP : 198.38.94.13 / Your IP : 216.73.217.33 Web Server : Apache System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64 User : revivere ( 1140) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/cwd/wp-content/plugins/wordpress-whatsapp-support/includes/ |
Upload File : |
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Get the selected support type.
*
* @since 2.4.0
*
* @return string|bool Support type `single`, `multiple`, and `group`, false otherwise.
*/
function wws_get_support_type() {
$layout = get_option( 'wws_layout' );
if ( in_array( $layout, array( 1, 2, 3, 4, 7 ) ) ) {
return 'single';
} else if ( in_array( $layout, array( 6, 8 ) ) ) {
return 'multiple';
} else if ( in_array( $layout, array( 5 ) ) ) {
return 'group';
}
return false;
}
/**
* Clean shortcode input.
*
* @since 2.4.3
*
* @param string $string String to clean.
* @return string Cleaned string.
*/
function wws_clean_shortcode_input( $string ) {
$string = str_replace( '[', '[', $string );
$string = str_replace( ']', ']', $string );
$string = apply_filters( __FUNCTION__, $string );
return $string;
}