Hi Peter,
We are missing the filters in EPL to make this possible without editing the core plugin:
Tracked Issue: https://github.com/easypropertylistings/Easy-Property-Listings/issues/962
The solution until a release is pushed is as follows:
The filters will be named.
Filters to be named:
epl_floorplan_keys
epl_external_link_keys
epl_mini_web_keys
So for now you will need to edit the core plugin but we will implement the same change so when you update your new code will continue to work:
edit
lib/hooks/hook-floorplan.php
LINE 30
FROM
$keys = array( ‘property_floorplan’, ‘property_floorplan_2’ );
TO
$keys = array( ‘property_floorplan’, ‘property_floorplan_2’ );
$keys = apply_filters( ‘epl_floorplan_keys’, $keys );
Then where your custom code is do the following
// Add new floor plans
function my_epl_floorplan_keys( $keys ) {
$keys = array(
'property_floorplan',
'property_floorplan_2',
'another_field',
'one_more',
'all_the_way_to_10',
);
return $keys;
}
add_filter( 'epl_floorplan_keys', 'my_epl_floorplan_keys'? );
-
This reply was modified 3 years, 11 months ago by
Merv Barrett.