Plugin API/Action Reference/activate (plugin file name)

来自WordPress中文文档
跳转至: 导航搜索

There was a bug that affected this function until version 2.2.3 or 2.3.

This hook provides no parameters. You use this hook by having your function echo output to the browser, or by having it perform background tasks. Your functions shouldn't return, and shouldn't take any parameters.

This hook was introduced in WordPress 2.0, and will not work in earlier versions.

It is recommended to use the function register_activation_hook() instead of this function.

See also http://wphooks.flatearth.org/hooks/activate_plugin-filename/

includeonlydiv style=clear:both; background-color:#FAEBD7; border:1px solid #CCCCCC; color:#000000; padding:7px; margin:0.5em auto 0.5em auto; vertical-align:middle;This page is marked as incomplete. You can help Codex by expanding it./div/includeonlynoinclude

Description

This Template is used by Codex:Template Messages.

Usage

pre 检查到模板循环:模板:Message /pre

Result

检查到模板循环:模板:Message

/noinclude