Tag Info

New answers tagged

3

I would say the section Constants in the Wordpress: PHP Documentation Standards is pretty clear. It should look like this: /** * Summary. * * @since x.x.x (if available) * @var type $var Description. */ define( 'MY_CONST', 'Hello' );


1

Using $wpdb->insert and or related methods to modify data within any of the default WordPress tables, be it posts, postmeta, user, usermeta etc is discouraged because there are functions which already exist for the purpose of modififying data within those tables. For example, wp_insert_post wp_update_post wp_delete_post Database Queries Avoid ...



Top 50 recent answers are included