File Editor
Directories:
.. (Back)
scripts
styles
Files:
advanced-custom-fields-pro.php
advanced-custom-fields.php
amazon-s3-and-cloudfront-pro.php
amazon-s3-and-cloudfront.php
autoptimize.php
caldera-forms.php
cartflows.php
cdn-enabler.php
coursepress.php
divi-filterable-blog-module.php
divi-module-code-snippet.php
divi-testimonial-slider.php
divi_layout_injector.php
divi_woo_layout_injector.php
dk-pdf.php
ds-divi-rocket.php
easy-digital-downloads.php
eventon.php
events-manager.php
final-tiles-grid-gallery-lite.php
gravityforms.php
gravityformssignature.php
ht-knowledge-base.php
imagify.php
insert-pages.php
jucra-acf-google-maps-for-divi.php
kvcore-idx.php
landing-pages.php
m-chart.php
mappress-google-maps-for-wordpress.php
megamenu.php
modern-events-calendar-lite.php
nex-forms-express-wp-form-builder.php
paid-memberships-pro.php
photo-gallery.php
pilotpress.php
popup-maker.php
relevanssi-premium.php
relevanssi.php
sellsy.php
seo-by-rank-math.php
sfwd-lms.php
sg-cachepress.php
siteorigin-panels.php
sitepress-multilingual-cms.php
table-of-contents-plus.php
the-events-calendar-community-events.php
the-events-calendar.php
toolbar-publish-button.php
woo-paypalplus.php
woocommerce.php
wordpress-mu-domain-mapping.php
wordpress-seo.php
wp-job-manager.php
wp-responsive-table.php
wp-rocket.php
wp-smush-pro.php
wp-smushit.php
wp-views.php
wp3d-models.php
wpml-sticky-links.php
yith-woocommerce-dynamic-pricing-and-discounts-premium.php
Create New File
Create
Edit File: wp-job-manager.php
<?php if ( ! defined( 'ABSPATH' ) ) { exit; // Exit if accessed directly } /** * Plugin compatibility for WP Job Manager. * * @since 4.0.10 * * @link https://wordpress.org/plugins/wp-job-manager/ */ class ET_Builder_Plugin_Compat_WPJobManager extends ET_Builder_Plugin_Compat_Base { /** * Constructor. * * @since 4.0.10 */ public function __construct() { $this->plugin_id = 'wp-job-manager/wp-job-manager.php'; $this->init_hooks(); } /** * Hook methods to WordPress. * Latest plugin version: 1.33.3 * * @since 4.0.10 * * @return void */ public function init_hooks() { // Bail if there's no version found if ( ! $this->get_plugin_version() ) { return; } 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. * * @since 4.0.10 * * @param mixed $hide * * @return boolean */ public function never_hide_content_in_builder( $hide ) { if ( et_core_is_fb_enabled() ) { return false; } return $hide; } /** * 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. * * @since 4.0.10 * * @param string $content * * @return string */ public function maybe_call_the_content( $content ) { static $output = false; 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 ); } $output = true; the_content(); return ''; } return $content; } } new ET_Builder_Plugin_Compat_WPJobManager();
Save Changes
Rename File
Rename