Hide comments column in WordPress backend

Try this: add_filter(“manage_edit-page_columns”, “my_page_edit_columns”); function my_page_edit_columns($columns){ unset($columns[‘comments’]); return $columns; } If you need it for posts instead of pages, use manage_edit-post_columns instead. The same goes for any post type, really, as manage_edit-{post_type}_columns.

WordPress custom form action url

simple with jQuery: //first make sure you have jQuery on that page add_action(‘wp_enqueue_scripts’,’make_sure_i_have_jquery’); function make_sure_i_have_jquery(){ if (!is_admin()) wp_enqueue_script( ‘jquery’ ); } //then just change the url to you own add_action(‘wp_footer’,’change_comment_form’); function make_sure_i_have_jquery(){ if (!is_admin() && (is_page() || is_single())) echo ‘<script> $(“#commentform”).attr(“action”, “http://yourUrl.com”); </script>’; } just paste this in your theme’s functions.php or the plugin your … Read more

WordPress comments on users profile

I had to do accomplish something similar with an old client where they wanted a custom comment type to allow them to post editorial comments in the admin while a post is going through the editorial phase, but should not be visible on the front end. Since there are no custom comment types available in … Read more

Change order of comment fields

Some loose implementation of where I would start. The hooks ‘comment_form_default_fields’, ‘comment_form_defaults’, and the ‘comment_form_{location}’ hooks look promising. Line 1569 of comment-template.php is doing the fields, and line 1575 is doing the main field, you might be able to “trick” wordpress into putting the comment field up top…but all that seems like it would take … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)