Dropdown list of all shortcodes
Adding this snippet to your WordPress theme's functions.php will add a select menu (custom media_buttons) with an automatically generated list of your short numbers.
Development lessons from own experience
Adding this snippet to your WordPress theme's functions.php will add a select menu (custom media_buttons) with an automatically generated list of your short numbers.
I want to show an example of code that I myself recently found and I think it will be a good addition to the lesson “Create plugin and admin panel menu with add_menu_page“. The code snippet below adds a menu with a submenu. Use...
Having considered a simple example of working with options, let's consider the remaining functions for processing and outputting options.: add_option($name, $value, $deprecated, $auto load) – adds a new option and does nothing if the option already exists. $name – Required parameter (string type)....
The task of saving data is worth it every time you need to program something., and when developing plugins, this is one of the first tasks after creating the interface part. But data in WordPress can be stored in different ways.. I offer two...
Continuing the series of articles, on writing plugins for WordPress, I want to show some more useful code snippets. Begin, as in previous articles. Create a file in the plugins folder and name it mytestplugin.php. To the generated file...
First lesson, about which I want to talk will be basic. To start creating your own plugin, you just need to create a file in the wp-content/plugins/ folder. Let's name the file my-wp-plugin.php. Let's add basic data to the plugin in the form of comments. These WordPress comments...
The theme of creating plugins has been interesting for a long time, and finally I came to interesting code fragments that can help us with this.. I will try to fill the site in the direction of developing plugins for WordPress more often. A little preface...