Tag Info

Hot answers tagged

3

I wonder if you mean this kind of check: if( $comment->user_id > 0 ) { // Registered comment author } in your comment's template callback. This is determined in the the wp-comments-post.php file: $commentdata = compact('comment_post_ID', ..., 'user_ID' ); $comment_id = wp_new_comment( $commentdata ); but it's not obvious where the user_ID ...


2

Look at the function wp_delete_comment(). It fires an action before the comment is deleted: /** * Fires immediately before a comment is deleted from the database. * * @since 1.2.0 * * @param int $comment_id The comment ID. */ do_action( 'delete_comment', $comment_id ); … and one after deletion: /** * Fires immediately after a comment is deleted ...


1

oh, it looks like I wrote that script, so let me try to answer you ;-) You could for example: add your own action hook in your template, use javascript to move the pings below the Disqus comments, hijack the disqus_language_filter filter of the Disqus plugin. If you go for the last option, you could use this modification of the PingsList class ...


1

You can try the comment_text filter: /** * Prepend text to each comment content. */ add_filter( 'comment_text', function( $comment_text ) { $text = 'Some text'; return $text . $comment_text; }); if you're displaying the comment text with: <?php comment_text(); ?>


1

Three aspects to this: Adding the checkboxes to the comment form Adding the values from the checkboxes to the comment meta data Displaying the values of the checkboxes Assuming you want to dynamically generate these based on the headings in the article, you'll need to parse the post content for headings and add the checkboxes to the comment form. This ...


1

Go to yoursite... /wp-admin/options-discussion.php Is Users must be registered and logged in to comment selected? If so, unselect it and Save Changes.


1

Well, that "link back" might be a Trackback or Pingback. It´s a function to inform other blogs that you have "used", mentioned or linked to their content. It´s made for connecting blogs with each other. Some themes show Track-/Pingbacks in the comment section, some don´t. Anyway, if you want to disable them, you can do so under Settings -> Discussion -> ...


1

Finally I found a bug in CPT UI plugin. There is no rewrite_rules apply at edit form submit stage. To have rewrite_rules finally applied, I have to show "edit post type" form (without submitting it) to have edited properties actually applied. I've also described an issue in WP blog. ...


1

I don't think there is any safe and reliable method to do this. In my honest opinion, this is also something that I would discourage My biggest concerns here are Anyone can enter a fake email or nickname that can match the details of an already registered member By doing this, an unregistered user might be able to get access to a registered member's ...



Only top voted, non community-wiki answers of a minimum length are eligible