2017-06-20 7 views
0

私はこれを尋ねる方法がわからないので、まず問題を説明します。私はカレンダーと複数のIDを持ついくつかのデータベースを更新するWordpress用のプラグインを持っています。だから、うまく動作するページ "editrental.php"のためのフックを持っていますが、特定のアイテムのリンクをクリックしてこのようなものに行くと、 "editrental.php?id = 3828"ページショー。私はそれが私がこのWordpressのプラグインのページ

add_submenu_page(null,'Wasatch Front Waste Calander Manage Editrental', 
'WFWRD Calendar Manage Editrental', 'manage_options', 'trailer-scheduler- 
editrental', 'trailer_admin_editrental'); 

正しい方向に私を送るために、正しくまたはリンクこの設定方法上の任意のアイデアのようなものであるフックを設定する方法とは何かを持って推測していますか?みんなありがとう。

答えて

0

を使用してみてください= 3828」。何らかの理由でそれを除いていなかったのですか?それは&を除きました。

0

だから私は「editrental.php & IDで "= 3828 editrental.php?ID" を切り替えたやってしまったこのすべての問題を解決するために、この

add_submenu_page(
     'edit.php?post_type=POST-TYPE-NAME', //under which post/custom post the submenu should appear 
     __('Submenu Title','menu-test'), 
     __('Submenu Title','menu-test'), 
     'manage_options', 
     'custom-admin-page', 
     array($this, 'function-name') //where the functionality works for the submmenu 
); 
0
// Add to admin_menu function 
$page = add_submenu_page('edit.php?post_type=theme', __('Theme Page Options'), __('Theme Menu Options'), 'edit_themes', 'theme_options', theme_options); 

function theme_options() { 
     // Render our theme options page here ... 
} 

theme options

関連する問題