plugins - How to execute certain code on back-end button press?

admin2025-06-05  1

I have a small and growing collection of code fragments for things that should only be executed once. For example, a one-time pass that adds information to every taxonomy term.

As of now, I have been keeping them in theme/function files, commenting them in or out when needed to run.

Instead, I'd like to move to a situation where I, the admin, could just execute them by a button press.

What should I explore in order to build a plugin which gives me an admin page with a few buttons on, corresponding to my code fragments? How should I think about making buttons that make the code run?

I have use of ACF.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1749133689a316646.html

最新回复(0)