What’s New in HivePress 1.5: Elementor Integration, Auto-Generated Titles and Email Customizer
New features, bug fixes and enhancements in the new HivePress version.
New features, bug fixes and enhancements in the new HivePress version.
Finally, you don’t have to add any code snippets to change the built-in image sizes, you can simply adjust them in the Settings > Media section, in the same way as for the default WordPress image sizes. You can change the maximum width and height, or adjust the cropping position.
In the new version, it’s possible to enable fullscreen image galleries in HivePress > Settings > Listings > Display section, so users will be able to zoom and view the listing images in fullscreen mode.
There’s a new “Indexable” option for attributes, by checking it you can include the attribute value in the keyword search. It works also for categories, so if you simply type the category name its listings will be found. Previously, the WP Extended Search plugin was required for this purpose.
A long-awaited feature that allows adding the category drop-down or any custom selectable attribute to the main search form, in addition to the filter form. You can also hide the keyword search in HivePress > Settings > Listings > Search section.
Now it’s possible to use any attribute value in another attribute’s display format. For example, you can create a Price and Currency attributes, and then set this display format for the Price attribute:
%listing.currency% %value%
Then the first part in this format will be replaced with the currency option selected by the user.
In the new version, there’s a new “Complete Profile” step in the listing submission process, so vendors can’t add a new listing without completing all the required profile fields. This is useful if you have some required vendor attributes, if not then the “Complete Profile” page is just skipped.
There’s a new option to set the dynamic Minimum Date for the Date attributes. For example, if you use it as a booking date you may want to set the Date Offset to zero – this means that users will not be able to select any past dates.
There are also a few improvements to HivePress API (actions and filters), that may be useful if you’re a developer customizing HivePress or extending its functionality.
Now, if you add any action to the CRUD hook, you can get the model object as a second parameter, previously only the object ID was passed. A quick example of a custom function that changes the listing title to “hello world” once it’s updated:
add_action(
'hivepress/v1/models/listing/update',
function( $listing_id, $listing ) {
$listing->set_title( 'hello world' )->save_title();
},
10,
2
);
Also, there’s a new way to set the account notifications number (useful for extensions), if you add the code snippet below it’ll display the notifications number next to the “My Account” link in the header section:
add_action(
'init',
function() {
hivepress()->request->set_context( 'notice_count', 123 );
}
);
Moreover, there’s a new way to add the custom attribute functionality to any HivePress model, by using the hivepress/v1/components/attribute/models
hook. If you pass the model name to it, it’ll automatically register all the required meta boxes and settings.
If you wanted to override the default email template, now there’s an easy way to do this, you can simply place a /hivepress/email/email-content.php file within the child theme folder and add any custom HTML there, you can use this code to output the email content:
echo $email->get_body();
New features, bug fixes and enhancements in the new HivePress version.