Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Small V in helping customers to develop WordPress theme or plug-in after the general theme or plug-in in the background to prepare a use of the documentation, but some customers careless, unable to find the documentation, the results will run back to ask Little V, Sometimes I get bored. Just recently in the local test plug-in found a control plug-in enabled to jump to the description page code, small V to dig out the code.
To jump code after a theme is enabled:
Global $pagenow;
if (Is_admin () && isset ($_get[' activated ']) && $pagenow = = ' themes.php ')
{
Wp_redirect (Admin_url (' mypage.php ')); Mypage.php can be changed to the address of the page you want to jump
Exit;
}
To enable a plugin to jump code:
Global $pagenow;
if (Is_admin () && isset ($_get[' activated ']) && $pagenow = = ' plugins.php ')
{
Wp_redirect (Admin_url (' mypage.php ')); Usage ditto
Exit;
}
Add the above code to the functions.php file.
This article link: http://v7v3.com/wpjiaocheng/20130699.html reproduced please specify the source, thank you for your cooperation!