我想将插件名称(预订活动)从该插件重命名为任何自定义名称:
我尝试过这样改变标题中的名称:
<?php
/**
* Plugin Name: Gästebuchungen
...
*/
但这对我不起作用。
更新:
我在插件根目录中找到了这个
function bookacti_create_menu() {
// Add a menu and submenus
$icon_url = 'dashicons-calendar-alt';
add_menu_page( __( 'Booking Activities', BOOKACTI_PLUGIN_NAME ), _x( 'Booking Activities', 'Name of the tab in the menu', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_booking_activities', 'booking-activities', null, $icon_url, '56.5' );
add_submenu_page( 'booking-activities', _x( 'Booking Activities', 'Landing page title', BOOKACTI_PLUGIN_NAME ), _x( 'Home', 'Landing page tab name', BOOKACTI_PLUGIN_NAME ),'bookacti_manage_booking_activities', 'booking-activities', 'bookacti_landing_page' );
add_submenu_page( 'booking-activities', __( 'Calendar editor', BOOKACTI_PLUGIN_NAME ), __( 'Calendar editor', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_templates', 'bookacti_calendars', 'bookacti_templates_page' );
add_submenu_page( 'booking-activities', __( 'Booking forms', BOOKACTI_PLUGIN_NAME ), __( 'Booking forms', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_forms', 'bookacti_forms', 'bookacti_forms_page' );
add_submenu_page( 'booking-activities', __( 'Bookings', BOOKACTI_PLUGIN_NAME ), __( 'Bookings', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_bookings', 'bookacti_bookings', 'bookacti_bookings_page' );
add_submenu_page( 'booking-activities', __( 'Settings', BOOKACTI_PLUGIN_NAME ), __( 'Settings', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_booking_activities_settings', 'bookacti_settings', 'bookacti_settings_page' );
}
add_action( 'admin_menu', 'bookacti_create_menu' );
我已将文本更改为此:
function bookacti_create_menu() {
// Add a menu and submenus
$icon_url = 'dashicons-calendar-alt';
add_menu_page( __( '**Gästebuchungen**', BOOKACTI_PLUGIN_NAME ), _x( '**Gästebuchungen**', 'Name of the tab in the menu', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_booking_activities', 'booking-activities', null, $icon_url, '56.5' );
add_submenu_page( 'booking-activities', _x( '**Gästebuchungen**', 'Landing page title', BOOKACTI_PLUGIN_NAME ), _x( 'Home', 'Landing page tab name', BOOKACTI_PLUGIN_NAME ),'bookacti_manage_booking_activities', 'booking-activities', 'bookacti_landing_page' );
add_submenu_page( 'booking-activities', __( 'Calendar editor', BOOKACTI_PLUGIN_NAME ), __( 'Calendar editor', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_templates', 'bookacti_calendars', 'bookacti_templates_page' );
add_submenu_page( 'booking-activities', __( 'Booking forms', BOOKACTI_PLUGIN_NAME ), __( 'Booking forms', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_forms', 'bookacti_forms', 'bookacti_forms_page' );
add_submenu_page( 'booking-activities', __( 'Bookings', BOOKACTI_PLUGIN_NAME ), __( 'Bookings', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_bookings', 'bookacti_bookings', 'bookacti_bookings_page' );
add_submenu_page( 'booking-activities', __( 'Settings', BOOKACTI_PLUGIN_NAME ), __( 'Settings', BOOKACTI_PLUGIN_NAME ), 'bookacti_manage_booking_activities_settings', 'bookacti_settings', 'bookacti_settings_page' );
}
add_action( 'admin_menu', 'bookacti_create_menu' );
此后,插件在加载所有表单并添加新表单时出错。
答案 0 :(得分:0)
如果可以使用免费插件,请在“管理员菜单编辑器”之后搜索。
成功安装插件后,您可以转到“设置”->“菜单编辑器”并重命名任何菜单项。希望有帮助。
编辑: 这仅适用于菜单标题,不适用于插件中的标题标题。