MHM Rentiva 6.4.1 has 28 actions and 124 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when MHM Rentiva fires an action
add_action( 'mhmrentiva_contact_recipient_fallback', function( $reason ) {
// Your code runs here.
}, 10, 1 );
// Change a value MHM Rentiva is about to use
add_filter( 'mhmrentiva_gallery_attachment_allowed', function( $value, $id, $vehicle_id, $actor_id ) {
// Change $value here.
return $value;
}, 10, 4 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filters whether an attachment may be used in a vehicle gallery. */ apply_filters( 'mhmrentiva_gallery_attachment_allowed', true, $id, $vehicle_id, $actor_id ); -
/** * Filters the retirement notice a retired dashboard surface prints. */ apply_filters( 'mhmrentiva_retired_dashboard_notice', $html, $role ); -
/** * Route wp-login.php to the WooCommerce My Account page for non-admin * visitors. */ apply_filters( 'mhmrentiva_takeover_login', true ); -
/** * Filter: Allow addons to provide custom booking data provider */ apply_filters( 'mhmrentiva_booking_data_provider', null ); -
/** * Filters the action links rendered above the booking list table. */ apply_filters( 'mhmrentiva_booking_list_toolbar_actions', array() ); -
/** * Filters the name of a booking's cart line, which becomes its order line name * at checkout. */ apply_filters( 'mhmrentiva_cart_item_name', $name, $booking_data, $cart_item ); -
/** * Filter: Allow addons to specify additional cache types to clear on booking * changes */ apply_filters( 'mhmrentiva_clear_booking_cache_types', array(), $booking_id ); -
/** * Filter: Allow addons to specify additional cache types to clear on vehicle * changes */ apply_filters( 'mhmrentiva_clear_vehicle_cache_types', array(), $vehicle_id ); -
/** * Most links a contact message may hold; one more makes it spam. */ apply_filters( 'mhmrentiva_contact_max_links', (int) SettingsCore::get('mhmrentiva_contact_max_links', self::DEFAULT_MAX_LINKS) ); -
/** * Seconds a public form must be open before a submit counts as a person's. */ apply_filters( 'mhmrentiva_contact_min_seconds', (int) SettingsCore::get('mhmrentiva_contact_min_seconds', self::DEFAULT_MIN_SECONDS) ); -
/** * A contact form submission carried a recipient payload that no longer vouches * for its address; the message goes to the global recipient. */ do_action( 'mhmrentiva_contact_recipient_fallback', $reason ); -
/** * The verdict on a valid contact message. */ apply_filters( 'mhmrentiva_contact_spam_reason', $reason, $submission ); -
/** * Extension point: the subscription-validation, activation-server check-in and * GDPR data-retention crons used to be hardcoded here, gated on a * class_exists() check for the add-on's activation-manager class and an add-on * GDPR capability gate. Their labels ("Validates plugin subscription daily", * "Reports site URL... to activation server", "Cleans up expired data...") * must never surface on a site th... */ apply_filters( 'mhmrentiva_cron_descriptions', $plugin_hooks ); -
/** * Filter: Allow addons and third-party plugins to add custom currencies to * dropdown */ apply_filters( 'mhmrentiva_currency_list', $currencies ); -
/** * Filter: Allow addons and third-party plugins to add custom currency symbols */ apply_filters( 'mhmrentiva_currency_symbols', $symbols ); -
/** * Badges to show beside a customer on the Customers screen. */ apply_filters( 'mhmrentiva_customer_badges', array(), $user_id ); -
/** * Fill in a customer's contact details Lite could not find. */ apply_filters( 'mhmrentiva_customer_contact', $found, $user_id ); -
/** * Elementor widget names (get_name()) that render this shortcode, so an add-on * can name its own widgets. */ apply_filters( 'mhmrentiva_elementor_widgets_for_shortcode', self::ELEMENTOR_WIDGETS[ $shortcode ] ?? array(), $shortcode ); -
/** * Sample context for previewing (and test-sending) a template. */ apply_filters( 'mhmrentiva_email_preview_context', $ctx, $key, $booking_id ); -
/** * Name the templates an extension adds to the registry. */ apply_filters( 'mhmrentiva_email_template_labels', $labels ); -
/** * Let the add-on (or any other extension) add its own email-type tabs before * the Preview tab -- e.g. message_emails, vendor_emails. */ apply_filters( 'mhmrentiva_email_types', $email_types ); -
/** * Filters the resolved tenant ID before context construction. Allows external * systems to inject a specific tenant ID. */ apply_filters( 'mhmrentiva_filter_tenant_id', $tenant_id ); -
/** * Widen (or narrow) who may move money on a booking. */ apply_filters( 'mhmrentiva_may_move_money', $allowed, $booking_id, $actor_id, $surface ); -
/** * Filters the number of vehicle rows the Bookings Calendar face renders before * trimming. Test-visible knob so a lower cap can be exercised without seeding * 100+ fixture vehicles; production default is 100. */ apply_filters( 'mhmrentiva_occupancy_matrix_row_cap', 100 ); -
/** * Filters the parity label dictionary (add-ons add their own keys). */ apply_filters( 'mhmrentiva_parity_labels', $base ); -
/** * Filter: Allow external plugins to register custom payment gateways */ apply_filters( 'mhmrentiva_payment_gateway', null ); -
/** * Filter the confidence thresholds. */ apply_filters( 'mhmrentiva_rating_confidence_thresholds', self::DEFAULT_THRESHOLDS ); -
/** * Lets a site change the source of an already detected preview. Never * consulted on the front end, so it cannot switch a visitor render into a * preview. A value other than `front`, `elementor` or `block` is ignored. */ apply_filters( 'mhmrentiva_render_context', array( 'source' => $source ) ); -
/** * Neutral seam for any email-type tab Lite does not own (e.g. the add-on's * message_emails/vendor_emails). The add-on renders its own tabs here. */ do_action( 'mhmrentiva_render_email_type', $current_type ); -
/** * Neutral seam for any email-type tab Lite does not own (e.g. the add-on's * message_emails/vendor_emails). The add-on saves its own tabs here. */ do_action( 'mhmrentiva_save_email_type', $current_tab ); -
/** * Filters the settings keys a programmatic write may create. */ apply_filters( 'mhmrentiva_settings_programmatic_keys', $keys ); -
/** * Allow modifying renderers after defaults are registered. */ do_action( 'mhmrentiva_settings_register_renderers', $this ); -
/** * Filters the settings keys a programmatic write treats as multi-line text. */ apply_filters( 'mhmrentiva_settings_textarea_keys', $keys ); -
/** * Filter the URL for a specific shortcode. */ apply_filters( 'mhmrentiva_shortcode_url', null, $shortcode ); -
/** * Filters the shortcode-tag → Elementor-widget-name map the debug scan uses. * Pro subscribes to add its own widgets. */ apply_filters( 'mhmrentiva_shortcode_widget_map', self::ELEMENTOR_WIDGET_MAP ); -
/** * Client-supplied headers such as `X-Forwarded-For`/`Client-IP` are ordinary * request headers: any caller that reaches this site directly can set them to * whatever it likes, so trusting them by default let an attacker rotate the * header value and bypass every IP-based rate limit built on get_client_ip() * entirely. They are only meaningful behind a reverse proxy/load balancer that * OVERWRITES them itse... */ apply_filters( 'mhmrentiva_trusted_proxy_ip_headers', array() ); -
/** * Filter: Allow addons and third-party plugins to add custom valid meta keys */ apply_filters( 'mhmrentiva_valid_meta_keys', $valid_keys ); -
/** * Filters a vehicle's blocked days before any availability check reads them. */ apply_filters( 'mhmrentiva_vehicle_blocked_days', $days, $vehicle_id ); -
/** * Fires after a vehicle's blocked-day list was written. */ do_action( 'mhmrentiva_vehicle_blocked_days_saved', (int) $vehicle_id ); -
/** * The dealer / pick-up line under the title. Lite has no dealer data; an * add-on fills it. */ apply_filters( 'mhmrentiva_vehicle_details_dealer_line', '', $vehicle_id ); -
/** * The default box order of the vehicle edit screen, for a user who has not * arranged the boxes. Comma-separated meta box ids per column. */ apply_filters( 'mhmrentiva_vehicle_edit_box_order', self::ORDER ); -
/** * Filters a vehicle's active penalty days. "Apply to All Vehicles" does not * copy them from the source and keeps each target's own; "Remove from All * Vehicles" does not remove a target's own. They belong to that vehicle's * penalty, not to the fleet. Lite has none. */ apply_filters( 'mhmrentiva_vehicle_penalty_days', array(), $vehicle_id ); -
/** * Filters whether WooCommerce owns currency presentation on this site. */ apply_filters( 'mhmrentiva_woocommerce_is_active', $is_active ); -
/** * My Account dashboard. */ do_action( 'woocommerce_account_dashboard' ); -
/** * Deprecated woocommerce_after_my_account action. */ do_action( 'woocommerce_after_my_account' ); -
/** * Deprecated woocommerce_before_my_account action. */ do_action( 'woocommerce_before_my_account' ); -
apply_filters( 'mhmrentiva_default_pickup_time', '10:00' ); -
apply_filters( 'mhmrentiva_locations', array(), 'rental' ); -
apply_filters( 'mhmrentiva_default_dropoff_time', '10:00' ); -
apply_filters( 'mhmrentiva_vehicles_page_url', (string) $url ); -
do_action( 'mhmrentiva_booking_status_changed', $booking_id, $old_status, $new_status ); -
apply_filters( 'mhmrentiva_email_body', $html, $key, $context ); -
apply_filters( 'mhmrentiva_vehicle_query_args', $args, 'featured_vehicles', array(), $atts ); -
apply_filters( 'mhmrentiva_account_endpoints', array() ); -
apply_filters( 'mhmrentiva_contact_phone', self::CONTACT_PHONE ); -
apply_filters( 'mhmrentiva_location_by_id', null, $origin_id ); -
apply_filters( 'mhmrentiva_accent_color', $candidate, 'custom' ); -
do_action( 'mhmrentiva_booking_created', $booking_id, $booking_data ); -
apply_filters( "mhmrentiva_email_body_{$key}", $html, $context ); -
apply_filters( 'mhmrentiva_email_context', $context, $key ); -
apply_filters( "mhmrentiva_email_context_{$key}", $ctx ); -
do_action( 'mhmrentiva_email_sent', $log_key, $to, $ok, $subject, $context ); -
apply_filters( 'mhmrentiva_known_cron_hooks', array( 'mhmrentiva_auto_cancel_event', 'mhmrentiva_email_log_purge_event', 'mhmrentiva_log_purge_event', ) ); -
apply_filters( 'mhmrentiva_settings_groups', $groups ); -
apply_filters( 'mhmrentiva_shortcode_html_cache_enabled', defined('WP_CACHE') && WP_CACHE && ! is_user_logged_in(), static::get_shortcode_tag() ); -
elementor/element/should_render_shortcode
filter Used by 6 plugins → Copy link Customise this hookapply_filters( 'elementor/element/should_render_shortcode', false ); -
apply_filters( 'elementor/globals/colors/items', $items ); -
apply_filters( 'mhmrentiva_accent_sources', array( 'adapter' => new AdapterSource(), 'elementor' => new ElementorKitSource(), 'theme_json' => new ThemeJsonSource(), ) ); -
do_action( 'mhmrentiva_account_messages_render_assets', $user, $customer_name ); -
apply_filters( 'mhmrentiva_attribute_registry', $registry ); -
apply_filters( 'mhmrentiva_availability_calendar_months_to_show', '2' ); -
apply_filters( 'mhmrentiva_availability_calendar_show_booking_btn', '1' ); -
apply_filters( 'mhmrentiva_availability_calendar_show_booking_button', apply_filters( 'mhmrentiva_availability_calendar_show_booking_btn', '1' ) ); -
apply_filters( 'mhmrentiva_availability_calendar_show_pricing', '1' ); -
apply_filters( 'mhmrentiva_availability_calendar_theme', 'default' ); -
do_action( 'mhmrentiva_before_booking_creation', array( 'vehicle_id' => $booking_data['vehicle_id'], 'pickup_date' => $booking_data['pickup_date'], 'pickup_time' => $booking_data['pickup_time'], 'dropoff_date' => $booking_data['dropoff_date'], 'dropoff_time' => $booking_data['dropoff_time'], 'contact_name' => $booking_data['customer_name'] ?? '', 'contact_email' => $booking_data['customer_email'] ?? '', 'contact_phone' => $booking_data['custo... ); -
apply_filters( 'mhmrentiva_blocks', self::$blocks ); -
do_action( 'mhmrentiva_booking_auto_cancelled', $bid, $new_status ); -
do_action( 'mhmrentiva_booking_auto_completed', $bid ); -
do_action( 'mhmrentiva_booking_cancelled', $booking_id, $user_id, $reason ); -
do_action( 'mhmrentiva_booking_completed', $booking_id ); -
do_action( 'mhmrentiva_booking_meta_updated', $post_id, $pickup_date, $dropoff_date ); -
do_action( 'mhmrentiva_booking_refunded', $booking_id ); -
apply_filters( 'mhmrentiva_cancellation_policy', $policy, $deadline_hours ); -
apply_filters( 'mhmrentiva_comments_default_settings', array( 'approval' => array( 'auto_approve' => false, 'require_login' => true, 'allow_guest_comments' => false, 'moderation_required' => true, 'admin_notification' => true, ), 'limits' => array( 'comments_per_page' => 10, 'max_comments_per_user' => 0, 'max_comments_per_vehicle' => 0, 'comment_length_min' => 5, 'comment_length_max' => 1000, 'rating_required' => true, ), 'spam_protection' => array... ); -
apply_filters( 'mhmrentiva_contact_attachment_max_bytes', self::MAX_ATTACHMENT_BYTES ); -
apply_filters( 'mhmrentiva_customers_vip_min_bookings', 5 ); -
apply_filters( 'mhmrentiva_dashboard_localize', $data ); -
apply_filters( 'mhmrentiva_dashboard_quick_actions', array() ); -
apply_filters( 'mhmrentiva_elementor_plain_text_migration_available', true ); -
apply_filters( 'mhmrentiva_elementor_shortcode_map', $map ); -
apply_filters( 'mhmrentiva_elementor_style_migration_available', true ); -
apply_filters( 'mhmrentiva_elementor_widgets', $widgets ); -
apply_filters( 'mhmrentiva_email_log_purge_limit', 200 ); -
apply_filters( 'mhmrentiva_email_registry', $registry ); -
apply_filters( 'mhmrentiva_email_subject', $sub, $key, $context ); -
apply_filters( "mhmrentiva_email_subject_{$key}", $sub, $context ); -
apply_filters( 'mhmrentiva_email_template_dirs', array() ); -
apply_filters( 'mhmrentiva_empty_cart_to_vehicles', true ); -
apply_filters( 'mhmrentiva_enable_booking_admin_extras', true ); -
apply_filters( 'mhmrentiva_filter_tenant_compliance_profile', 'global', $tenant_id ); -
apply_filters( 'mhmrentiva_filter_tenant_key', 'tenant_' . $tenant_id, $tenant_id ); -
apply_filters( 'mhmrentiva_filter_tenant_locale', get_locale(), $tenant_id ); -
apply_filters( 'mhmrentiva_force_load_assets', false ); -
apply_filters( 'mhmrentiva_has_locations', false ); -
do_action( 'mhmrentiva_list_screen_face' ); -
do_action( 'mhmrentiva_list_screen_header' ); -
apply_filters( 'mhmrentiva_locate_template', $located, $relative ); -
apply_filters( 'mhmrentiva_log_purge_limit', 200 ); -
do_action( 'mhmrentiva_logs_purged', $deleted, $days ); -
apply_filters( 'mhmrentiva_min_payment_deadline', 5 ); -
apply_filters( 'mhmrentiva_object_cache_allow_global_flush', false, $backend ); -
apply_filters( 'mhmrentiva_object_cache_flush_group', null, $group, $backend ); -
apply_filters( 'mhmrentiva_payment_deadline_minutes', '30' ); -
do_action( 'mhmrentiva_process_refund', $booking_id, $payment_gateway, $user_id ); -
do_action( 'mhmrentiva_refund_completed', $bookingId, $operation ); -
apply_filters( 'mhmrentiva_refund_notification_mode', $mode, $booking_id ); -
do_action( 'mhmrentiva_refund_status_changed', $booking_id, $to, $from, self::normaliseContext( $booking_id, $context ) ); -
do_action( 'mhmrentiva_register_settings_providers' ); -
do_action_ref_array( 'mhmrentiva_render_settings_tab', array( &$current_tab, &$handled ) ); -
apply_filters( 'mhmrentiva_sanitize_settings_tab', $sanitized_batch, $current_tab, $input, $defaults ); -
do_action( 'mhmrentiva_send_confirmation_email', $booking_id ); -
apply_filters( 'mhmrentiva_settings_activation_providers', $provider_classes ); -
apply_filters( 'mhmrentiva_settings_tabs', array() ); -
apply_filters( 'mhmrentiva_settings_tabs_order', array( 'general', 'vehicle', 'vendor-marketplace', 'booking', 'transfer', 'addons', 'customer', 'comments', 'payment', 'email', 'email-templates', 'messages', 'system', 'frontend', 'integration', 'database-cleanup', 'cron-monitor', ) ); -
apply_filters( 'mhmrentiva_shortcode_auth_error', __('Please login to view this content.', 'mhm-rentiva'), $tag ); -
apply_filters( 'mhmrentiva_shortcode_block_map', $map ); -
apply_filters( 'mhmrentiva_shortcode_load_assets_conditionally', true, static::get_shortcode_tag() ); -
apply_filters( 'mhmrentiva_shortcode_page_config', $config ); -
apply_filters( 'mhmrentiva_shortcode_url_tags', $shortcodes ); -
apply_filters( 'mhmrentiva_shortcodes', $registry ); -
apply_filters( "mhmrentiva_shortcodes_{$tag}_html", $html, $filter_atts, $content ); -
apply_filters( 'mhmrentiva_skip_dependency_check', false ); -
apply_filters( 'mhmrentiva_spam_words', array( 'spam', 'viagra', 'casino', 'loan', 'free money', 'click here', 'buy now', 'discount', ) ); -
apply_filters( 'mhmrentiva_template_candidates', $candidates, $relative ); -
apply_filters( 'mhmrentiva_testimonials_auto_rotate', '0' ); -
apply_filters( 'mhmrentiva_testimonials_class', '' ); -
apply_filters( 'mhmrentiva_testimonials_columns', '3' ); -
apply_filters( 'mhmrentiva_testimonials_layout', 'grid' ); -
apply_filters( 'mhmrentiva_testimonials_limit', '5' ); -
apply_filters( 'mhmrentiva_testimonials_order', 'DESC' ); -
apply_filters( 'mhmrentiva_testimonials_orderby', 'date' ); -
apply_filters( 'mhmrentiva_testimonials_rating', '' ); -
apply_filters( 'mhmrentiva_testimonials_show_customer', '1' ); -
apply_filters( 'mhmrentiva_testimonials_show_date', '1' ); -
apply_filters( 'mhmrentiva_testimonials_show_rating', '1' ); -
apply_filters( 'mhmrentiva_testimonials_show_vehicle', '1' ); -
apply_filters( 'mhmrentiva_testimonials_vehicle_id', '' ); -
apply_filters( 'mhmrentiva_theme_adapters', self::builtin() ); -
apply_filters( 'mhmrentiva_translation_dirs', array( MHMRENTIVA_PLUGIN_DIR . 'languages/' ) ); -
woocommerce_adjust_non_base_location_prices
filter Used by 50 plugins → Copy link Customise this hookapply_filters( 'woocommerce_adjust_non_base_location_prices', true );
Generated from MHM Rentiva's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: