Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/themify-.../includes/plugin-c...
File: eventscalendar.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Builder Plugin Compatibility Code
[2] Fix | Delete
*
[3] Fix | Delete
* @package Themify_Builder
[4] Fix | Delete
* @subpackage Themify_Builder/classes
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
class Themify_Builder_Plugin_Compat_EventsCalendar {
[8] Fix | Delete
[9] Fix | Delete
static function init() {
[10] Fix | Delete
add_action( 'template_redirect', array( __CLASS__, 'the_events_calendar_fix' ) );
[11] Fix | Delete
}
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* Fix duplicate content in The Events Calendar plugin
[15] Fix | Delete
*
[16] Fix | Delete
* @link https://wordpress.org/plugins/the-events-calendar/
[17] Fix | Delete
*/
[18] Fix | Delete
public static function the_events_calendar_fix():void {
[19] Fix | Delete
if ( is_singular( 'tribe_events' ) ) {
[20] Fix | Delete
add_filter( 'tribe_events_after_html', array( __CLASS__, 'tribe_events_after_html' ) );
[21] Fix | Delete
}
[22] Fix | Delete
}
[23] Fix | Delete
[24] Fix | Delete
/**
[25] Fix | Delete
* Disable Builder frontend output after "tribe_events_after_html" filter
[26] Fix | Delete
*
[27] Fix | Delete
* @return string
[28] Fix | Delete
*/
[29] Fix | Delete
public static function tribe_events_after_html(string $after='' ):string {
[30] Fix | Delete
remove_filter( 'the_content', array( 'Themify_Builder', 'builder_show_on_front' ), 11 );
[31] Fix | Delete
return $after;
[32] Fix | Delete
}
[33] Fix | Delete
}
[34] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function