Custom sort comments with select form
I would use an url parameter to define which products are shown, and update the page contents either by javascript or php.
I would use an url parameter to define which products are shown, and update the page contents either by javascript or php.
An Example. A post for a game. People just comment the game. I wanna to have 3 types of comments. Comments form team A – comments for Team B and comments for the referee. This way all the comments are not mixed up. The hard way If I were to undertake such a project, my … Read more
Is it possible to give a classname to specific comments in the WordPress admin?
Comments only displaying when logged in
There are a number of functions you can use: register_new_user wp_create_user wp_insert_user The first function being the most simple to use and the last function gives you many more options – it depends what you want to do. You can create the new account when the comment is posted using the comment_post hook. You will … Read more
Thanks for posting the code. Give this a shot: To contact us <a href=”#respond”>send us a message in a comment</a>.
You can use the comment_form_defaults filter to change your text based on custom post type. Just check the post type in your filter function. For example: add_filter( ‘comment_form_defaults’, ‘my_comment_form_defaults’ ); function my_comment_form_defaults( $defaults ) { if ( ‘my_cool_custom_post_type’ == get_post_type() ) { $defaults[‘title_reply’] == ‘My Custom Post Type Comment Title’; } return $defaults; } If … Read more
Comments pagination: reverse JUST the links texts (1-2-3 to 3-2-1), not comments order
comment just attachment .. reply just text … can I do that?
Yes, there is a hook you can use to filter the action links: comment_row_actions. E.g. add_filter( ‘comment_row_actions’, ‘my_comment_row_actions’, 10, 2 ); function my_comment_row_actions( $actions, $comment ) { // Filter the actions by user role. $roles = (array) wp_get_current_user()->roles; if ( in_array( ‘administrator’, $roles ) ) { $actions[‘foo’] = ‘<a href=”#”>Foo action</a>’; } // Filter the … Read more