0

簡単なプラグインを作成していて、add.php、edit.php、delete.php、list.phpのいくつかのページを用意しました。add_menu_pageとadd_submenu_pageを使用したので、管理メニューに表示される理由を理解しました。これをメニューに入れずにページ(またはパラメーター付きのカスタムURL)を作成するにはどうすればよいですか?ページを編集するためのリンクを追加し、リストページのURL(プラグインによって実行されるコード)を削除したい-投稿リストページのようなものですが、これを達成するための機能が見つかりません。

4

1 に答える 1

1

Here are two possible solutions for this questions:

How do you add a WordPress admin page without adding it to the menu?

Personally i havent tried it but it like the one where you remove the item from the menu after you set things up like normal.

There is also a great plugin called the WP Router that can help you setup totally unique urls with the callback you desire.

于 2012-07-24T13:59:26.697 に答える