Skip to content

Instantly share code, notes, and snippets.

@terrylinooo
Created October 11, 2023 15:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terrylinooo/84becf28401f261f12dfc4c0fc68bb29 to your computer and use it in GitHub Desktop.
Save terrylinooo/84becf28401f261f12dfc4c0fc68bb29 to your computer and use it in GitHub Desktop.
airyseo_custom_options_page
/**
* 鐵人賽頁面設定選單:設定下的子選單
*/
function airyseo_custom_options_page() {
add_options_page(
'示範鐵人賽頁面標題',
'示範鐵人賽選單文字',
'manage_options',
'airyseo_custom_options',
'airyseo_custom_page_content'
);
}
/**
* 鐵人賽示範頁:設定頁的內容
*/
function airyseo_custom_page_content() {
echo '<h1>這是示範設定頁的標題</h1>';
echo '<p>這是示範設定頁的內容</p>';
}
add_action( 'admin_menu', 'airyseo_custom_options_page' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment