: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Themify Compatibility Code
* @link https://client-portal.io
class Themify_Compat_lecoClientPortal {
add_action( 'template_redirect', array( __CLASS__, 'template_redirect' ), 1 );
/* disable Builder for Client Portal post type */
add_filter( 'tb_is_disabled_for_leco_client', '__return_true' );
public static function template_redirect() {
if ( is_singular( 'leco_client' ) ) {
remove_action( 'template_redirect', array( 'Themify_Enqueue_Assets', 'start_buffer' ) );