Many plugins call get_option() to fetch their settings right in the main plugin file, without using any action hook. Is this the way it is meant to be used?...
  • May 25, 2022
  • 0 Comments
I am currently working on my first WordPress plugin. To save and output certain settings I use the native Settings API. Now the question arises, how performant are several...
  • May 25, 2022
  • 0 Comments
I write a wordpress plugin. My plugin has options. All options are in one group, ‘pluginname-settings’. All option names are uniform and look like “pluginname-settings[‘option-name’]”. Some code to illustrate...
  • May 19, 2022
  • 0 Comments
Referring to Settings API in Multisite – Missing update message It states that: For network option pages the correct form action URL is: wp-admin/network/edit.php?action=your_option_name Note: without a “https://wordpress.stackexchange.com/” in...
  • May 15, 2022
  • 0 Comments
I seem to recall seeing a tip somewhere saying that it was a best practice to save a plugin’s version number as an option. I’m working through releasing a...
  • May 7, 2022
  • 0 Comments