Created
October 11, 2023 15:58
-
-
Save terrylinooo/84becf28401f261f12dfc4c0fc68bb29 to your computer and use it in GitHub Desktop.
airyseo_custom_options_page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 鐵人賽頁面設定選單:設定下的子選單 | |
*/ | |
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