Tag Info

New answers tagged

0

Solved it myself, this is how to do it: If you want to programatically update serialized options: download wp-cli from wp-cli.org Find out what is the "key" for the options you are using. In this example the key is "wp_smtp_options" If you don't know the key, search in wp_options table and try to figure it out. Example: select * from wp_options where ...


0

The WP-CLI command option does use WordPress' Options API to do its job. Given, e.g. with the subcommand update, a correct input, an array, you should be able to do this with WP-CLI. You should make use of the --format parameter here, to make sure you get the same, json works generally fine for the update subcommand. Note, the subcommand get should return ...


0

The question is from a long time ago but, just for reference, in this particular case and if somebody simply wants to use the checked function with what seems to be an array (instead of doing the test and output 'checked` on the spot) here is a drop-in solution: checked( in_array( $shopCategory->term_id, $term_meta['ss_aff_categories'] ) ) This works ...


0

Sounds like you are trying hard to shot yourself and you will likely succeed. Every framework has its own assumptions and limitation so if the assumptions of wordpress do not fit your needs then just don't use wordpress for the project. If you (ok, probably the client) have decided that for reasons of cost, delivery time and maintainability wordpress ...


1

As the codex says, it is legacy with probably no use in any modern version. I have been around wordpress since 2.0.4 and I don't remember it being used or referenced so my guess is that it is a really old legacy thing.



Top 50 recent answers are included