[WordPress] How to Get All Option Names in Option Group
When we developing the WordPress plugin, we can simply use register_setting()
, get_option()
, and update_option()
function to store some plugin settings in the database.
When we developing the WordPress plugin, we can simply use register_setting()
, get_option()
, and update_option()
function to store some plugin settings in the database.
Recently, I got a need for create a new element in web page dynamically. In fact, I need to add some checkbox items via Javascript.
Read More »[HTML][JS] Dynamically Create Elements (Take Checkbox as Example)When we are programming with C++ and we want to store some data, in addition to use the array, we use the "vector" in the standard library.
Read More »[C++] How to Initialize Std::Vector of Two or Higher DimensionsAfter using cp
or rsync
commands to copy the files, in order to make sure that there is no problem during the copying process, we may use the du
command to check the size of the file.
Almost all of user who used Debian/Ubuntu OS use apt
or apt-get
tool to control their own packages. Many users even misunderstand that they are the same thing.
Many people know that there is a limit on the image uploaded size in WordPress. For uploading easily and displaying pictures smoothly, it is very important to compress large-capacity images without destroying too much quality.
Read More »Compress Images With TinyPNG Free Online ToolToday I want to record a bit of strange requirement: how to use WordPress core function in external PHP file. I think some people may need it in future, because I see the same problem on stackoverflow (https://stackoverflow.com/questions/29791763/use-get-option-in-external-php-file).
Read More »[Solved] How to Use WordPress Core Function in External PHP FileMany different themes provide many different function page, some page have pretty UI and surprise function, but if you check their content in wp-admin, you will find the page content is blank!
Read More »[WordPress] Use PHP Program To Edit A Specific Page ContentToday when I trying to add a new function on my WordPress website, the code I create have no any display, but there is a new warning message pop up:
Read More »[Solved] Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'change page_content' not found or invalid function name inThere are many methods to create a button for user in Flutter application, but I think the TextButton is the easiest one. It is a simple button can display any text, and click it can trigger the function.
Read More »[Flutter] Use TextButton to Create a Text Button