Automatically create page in WordPress

前端 未结 2 1470
忘了有多久
忘了有多久 2021-02-01 08:20

How can I automatically create a WordPress page (for example, when plugin is activated)?

2条回答
  •  醉梦人生
    2021-02-01 08:56

    Wordpress provides the wp->query API method for database abstraction. You can create the appropriate query to make a Page when needed.

提交回复
热议问题