| 开发者 | mnprweb |
|---|---|
| 更新时间 | 2026年11月26日 18:03 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.2 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
Yes. Each client gets a normal WordPress user account with the "Portal user" role, so you manage them under Users like anyone else. They log in at /portal/ with their email address or username.
No. Portal users are redirected to the portal if they try to open the dashboard, the admin bar is hidden for them, and they can't make changes through the REST API. Administrators can use both the portal and wp-admin.
No. The portal has its own simple design, separate from your theme. On the website, content appears inside your theme wherever you choose to show it.
It works with block themes and classic themes. Page builders that can show custom fields (post meta), such as Breakdance, Elementor and Bricks, can display the values directly using each field's name. The shortcodes work anywhere shortcodes do.
There are four ways: automatic display on each item's page, the two blocks, shortcodes, or your page builder. On the Content screen, every field has a Copy shortcode button, and each page and list has an "On your website" tab with ready-made shortcodes and field names. Client Portal → Tools has the full reference.
[mnprcp_page page="about" name="intro"] shows a field from a page, such as the About page.[mnprcp_list section="events" show="upcoming"] lists a list's items. Options: show (all, upcoming, past), layout (list, cards), limit, fields, image, link, empty.[mnprcp_field name="venue"] shows one field of the current item. Add post_id="123" to show it from another item.[mnprcp_site name="phone"] shows a Business details field anywhere.Yes. Use mnprcp_the_field( 'venue' ) to print a field of the current item, formatted for the website, or mnprcp_get_field( 'venue' ) to get the raw value. For pages, use mnprcp_the_page_field( 'about', 'intro' ) or mnprcp_get_page_field( 'about', 'intro' ). For Business details, use mnprcp_the_site_detail( 'phone' ) or mnprcp_get_site_detail( 'phone' ). Values are also normal post meta, so get_post_meta() works too.
Yes. Images are checked to be real images, and other files must be types WordPress allows. Uploads go into the Media Library, and portal users can only use files they uploaded themselves or files already on the item they're editing.
Yes. When adding a list, choose "Use an existing content type". Any existing custom fields with the same names as your portal fields are picked up automatically.
List items (posts) and their values are always kept. The plugin's settings, page content and Business details are only removed if you first tick "Also delete the portal setup, appearance settings, page content and Business details" under Client Portal → Tools.
Yes, on WordPress 6.9 and later. The plugin registers its own abilities with the WordPress Abilities API, so an AI agent connected to your site through the MCP Adapter plugin can see the setup, apply a starter, add, change and remove pages, lists and fields, fill in pages and Business details, add and edit entries, change the portal's appearance and switch Coming soon mode. Only administrators can use them. Every change goes through the same checks as the admin screens, anything that removes something needs a confirmation, and content is never deleted: removed pages, lists and fields keep their stored values, and entries go to the bin.
Yes. All text can be translated, and a translation template is included in the languages folder.
mnprcp_can_manage_site_details filter decides who can edit Business details in the portal. MNPR Client Portal Pro uses it so Events only logins don't see Business details.mnprcp_preset_applied action fires after a preset is applied, so add-ons can set up anything else it needs.mnprcp_dashboard_after_groups action prints a section on the portal dashboard, after the groups of cards.[mnprcp_page] shortcode or mnprcp_the_page_field().[mnprcp_site] and mnprcp_get_site_detail() work as before.mnprcp_show_go_pro filter.mnprcp_portal_nav_group, mnprcp_tools_top, mnprcp_presets_after, mnprcp_portal_screen_after, mnprcp_validate_page, mnprcp_can_manage_page and mnprcp_saved_page_values.mnprcp_dashboard_items, mnprcp_dashboard_groups, mnprcp_dashboard_group, mnprcp_dashboard_attention and mnprcp_rich_text_allowed_html. The mnprcp_dashboard_cards action still works.MNPRCP_Config::stored() and MNPRCP_Settings::update(), and the mnprcp_abilities filter for add-ons.post_id shortcode example in the readme showed curly quotes on WordPress.org.