MNPR Client Portal 1.4.0 has 22 actions and 25 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 MNPR Client Portal fires an action
add_action( 'mnprcp_portal_deleted', function( $ID, $found ) {
// Your code runs here.
}, 10, 2 );
// Change a value MNPR Client Portal is about to use
add_filter( 'mnprcp_validate_entry', function( $errors, $prepared, $section, $arg4, $core ) {
// Change $errors here.
return $errors;
}, 10, 5 );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
-
/** * This action is documented in includes/portal/class-mnprcp-portal-content.php */ do_action( 'mnprcp_portal_deleted', $found['post']->ID, $found['section'] ); -
/** * This action is documented in includes/portal/class-mnprcp-portal-content.php */ do_action( 'mnprcp_portal_saved', $saved_id, $section, ! $post ); -
/** * This filter is documented in includes/portal/class-mnprcp-portal-content.php */ apply_filters( 'mnprcp_validate_entry', $errors, $prepared['values'], $section, $post ? (int) $post->ID : 0, $core ); -
/** * Filters the abilities MNPR Client Portal registers. Add-ons can add their * own definitions in the same shape. */ apply_filters( 'mnprcp_abilities', $abilities ); -
/** * Fires after the portal has asked caches to clear. Hook in to clear other * caches (e.g. a CDN). */ do_action( 'mnprcp_after_purge' ); -
/** * Filters the classes on the portal's <body>. */ apply_filters( 'mnprcp_body_class', $base, $d ); -
/** * Filters whether the current user may manage a section in the portal. */ apply_filters( 'mnprcp_can_manage_section', true, $section ); -
/** * Filters whether the current visitor sees the real site while coming soon * mode is on. */ apply_filters( 'mnprcp_coming_soon_can_see_site', false ); -
/** * Filters what the plain holding page shows. */ apply_filters( 'mnprcp_coming_soon_data', $data, $s ); -
/** * Filters the portal setup after it has been loaded and validated. */ apply_filters( 'mnprcp_config', $result['config'] ); -
/** * Fires after the portal setup has been saved. */ do_action( 'mnprcp_config_saved', $result['config'] ); -
/** * Add cards to the portal dashboard. */ do_action( 'mnprcp_dashboard_cards' ); -
/** * Filters the wording of the edit form's built-in fields for a section. */ apply_filters( 'mnprcp_edit_labels', array(), $mnprcp_section ); -
/** * Filters the available field types. Add-ons can append their own * MNPRCP_Field_Type instances. */ apply_filters( 'mnprcp_field_types', $builtin ); -
/** * Format a value of a custom field type. */ apply_filters( "mnprcp_format_{$field['type']}", '', $field, $value, $args ); -
/** * Filters the query used by the list shortcode and block. */ apply_filters( 'mnprcp_frontend_list_args', $args, $section, $atts ); -
/** * Add buttons beside "Add …" at the top of a section's list. */ do_action( 'mnprcp_list_head_actions', $mnprcp_section ); -
/** * Filters the line under an entry's title in a section's list. */ apply_filters( 'mnprcp_list_item_meta', $mnprcp_meta, $mnprcp_post, $mnprcp_section ); -
/** * Filters the query used for a section's list in the portal. */ apply_filters( 'mnprcp_list_query_args', $args, $section ); -
/** * Lets add-ons show their own portal screens. To handle a path, call * MNPRCP_Portal_View::render() (which stops); otherwise do nothing. The user * is logged in and allowed into the portal at this point. */ do_action( 'mnprcp_portal_route', $first, $parts ); -
/** * Filters the arguments used to register a section's post type. */ apply_filters( 'mnprcp_post_type_args', $args, $section ); -
/** * Filters a field value read for a post, for example to read it from another * plugin's data instead of post meta. */ apply_filters( 'mnprcp_post_value', $value, (int) $post_id, $field ); -
/** * Filters the available presets. */ apply_filters( 'mnprcp_presets', $presets ); -
/** * Filters whether the plugin clears page caches after portal changes. */ apply_filters( 'mnprcp_purge_cache', true ); -
/** * Draw the input for a custom field type. */ do_action( "mnprcp_render_field_{$field['type']}", $field, $value, $name, $id ); -
/** * Fires after portal field values have been saved for a post. */ do_action( 'mnprcp_saved_post_values', $post_id, $section, $prepared['values'] ); -
/** * Fires after Site details have been saved. */ do_action( 'mnprcp_saved_site_values', $prepared['values'] ); -
/** * Filters the schema data for an entry. */ apply_filters( 'mnprcp_schema', $data, $post, $section ); -
/** * Filters the currency used in event schema prices. */ apply_filters( 'mnprcp_schema_currency', function_exists( 'get_woocommerce_currency' ) ? get_woocommerce_currency() : 'GBP' ); -
/** * Filters the portal settings. */ apply_filters( 'mnprcp_settings', $s ); -
/** * Filters whether the Go Pro screen is shown. Return false to hide it, for * example on client sites. */ apply_filters( 'mnprcp_show_go_pro', true ); -
/** * Filters the file used for a portal template, so developers can override it. */ apply_filters( 'mnprcp_template_file', $file, $name ); -
/** * Filters a validated section. Add-ons can carry extra settings here. */ apply_filters( 'mnprcp_validate_section', $section, $raw ); -
/** * Filters the data passed to a portal template. */ apply_filters( 'mnprcp_view_data', $d, $screen ); -
do_action( 'mnprcp_portal_head', $d ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'mnprcp_auth_after_card', $d ); -
do_action( 'mnprcp_portal_sidebar_end', $d ); -
do_action( 'mnprcp_portal_sidebar_foot', $d ); -
do_action( 'rt_nginx_helper_purge_all' ); -
do_action( 'wpo_cache_flush' );
Generated from MNPR Client Portal'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: