: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
* Plugin compatibility for WP Job Manager.
* @link https://wordpress.org/plugins/wp-job-manager/
class ET_Builder_Plugin_Compat_WPJobManager extends ET_Builder_Plugin_Compat_Base {
public function __construct() {
$this->plugin_id = 'wp-job-manager/wp-job-manager.php';
* Hook methods to WordPress.
* Latest plugin version: 1.33.3
public function init_hooks() {
// Bail if there's no version found
if ( ! $this->get_plugin_version() ) {
add_filter( 'option_job_manager_hide_expired_content', array( $this, 'never_hide_content_in_builder' ) );
add_filter( 'wpjm_the_job_description', array( $this, 'maybe_call_the_content' ) );
* Always show the content even for expired jobs when editing in the builder.
public function never_hide_content_in_builder( $hide ) {
if ( et_core_is_fb_enabled() ) {
* Maybe trigger the_content() instead of returning the description as the plugin
* does not call the_content().
* Do this only if the builder is used for the current post.
public function maybe_call_the_content( $content ) {
if ( ! $output && et_core_is_builder_used_on_current_request() ) {
if ( doing_action( 'wp_footer' ) ) {
// Do not use the full content when outputting structured data.
return truncate_post( apply_filters( 'excerpt_length', 55 ), false );
new ET_Builder_Plugin_Compat_WPJobManager();