After looking at the wp_list_comments()
and Walker_Comment
sources I would assume the callback is what the Walker uses to render single comments. And the callback recieves three parameters $comment, $args, $depth
when the Walker calls it.
Based on this, I assume you should be able to just push custom key-value pairs to your $args
array and then have them available when the callback function is called.
This is slighty unfamiliar territory for me, so I may be mistaken.
Related Posts:
- What does ‘super’ do in Python? – difference between super().__init__() and explicit superclass __init__()
- What is Inversion of Control?
- What is an example of the Liskov Substitution Principle?
- What __init__ and self do in Python?
- When should you use a class vs a struct in C++?
- C++ error ‘Undefined reference to Class::Function()’ [duplicate]
- What’s the difference between a method and a function?
- How do I implement interfaces in python?
- What is polymorphism, what is it for, and how is it used?
- java – invalid method declaration; return type required [duplicate]
- java – invalid method declaration; return type required
- Is C++ an Object Oriented language?
- Difference between abstraction and encapsulation?
- What are metaclasses in Python?
- extends class and implements interface in java
- What is a “driver class”?
- What is difference between functional and imperative programming languages?
- How can I create a copy of an object in Python?
- What is polymorphism in Javascript?
- When should I be using classes in Python?
- How to create a subclass in C#?
- How would one write object-oriented code in C?
- How to get a JavaScript object’s class?
- Inheritance vs. Aggregation [closed]
- What is the difference between an Instance and an Object?
- What does ‘low in coupling and high in cohesion’ mean
- What is an example of the Single Responsibility Principle?
- Will WordPress become completely OOP?
- How to name files of namespaced classes?
- What is the best way to instantiate a class of a plugin in your WordPress theme?
- Load comments per post on click with AJAX
- problem with implementing widget via the_content()
- Load classes using spl_autoload_register
- UML diagrams of WordPress
- Trying to get property of non-object
- Loading Comments From a Class?
- Static vs Dynamic methods in WordPress
- Autoloader not finding classes from my plugin
- Integration tests test script enqueue/register fails
- Error of “Call a member function on non object” while var_dump get correct result
- Does &$this is really disallowed to use anywhere?
- Don’t filters violate the a class’ local variables visibility rules?
- Admin submenu does not call function to load the page
- Using Geo Data Store Plugin Code
- How to wait for WordPress Core to load when writing OOP?
- OOP – from plugin add new object and call static method in another file
- How to get parameters with add_filter with a static method?
- Is there a way to create multiline comments in Python?
- What is Serialization?
- Add placeholder attribute to comment form fields
- human_time_diff() returns “48 years ago” for all comments
- Why are default comments deprecated?
- Comments Reply Form
- Custom comment type maybe?
- How to check if commenter is the_author?
- Where is the “ancestors” post object attribute?
- adding a text message beside the comment submit button
- WordPress unresponsive after calling wp_update_comment()
- How can I fix wp_insert_comment failure when ‘comment_content” includes slanted apostrophe in Excel csv source data
- Is WordPress vulnerable to “comment posting forgery”?
- Advice on plugin structure
- Show comments menu in dashboard only if the site has comment
- How can I edit comment notification email content?
- Email entire post contents
- How to automatically evaluate comment content without user seeing the delay?
- Loading comments in ajax – comment-reply function missing $args
- css hide all the comment reply links except the lowest nested comments
- Spammers attacking my WordPress Site – Removing URL field from core? [closed]
- Get all images in post and comments like Twitter before post title
- Loading Multiple Comments Pages via Ajax?
- custom hooks before a comment is updated/edited in the database
- Undefined method class::construct() when creating a plugin
- Conditional: IF current user has NOT commented on current post (not including post author)
- Get object for a few selected taxonomies
- Appended comments but they show up above the content instead of below
- comment meta_query for keys that aren’t yet set
- Flag Comment as inappropriate button plugin
- How to hide wordpress post comment form for specific role
- How to display comment meta under each comment content
- If post exists, make it a comment in existing post with same name?
- Enable comments for post when comments meta box removed
- disable reply comments on depth equals 2
- Problem with comment box
- Users moderate own comments
- recent comments filter by author, page, category
- Problem in getting user comments permalinks
- Permalink structure and dedicated comment pages
- Critical error – can’t post comments
- How to fix broken URL – https://mywebsite.com/comments/feed/
- How do I make the comment disappear after deleting from the database?
- Disallowed Tag Present in AMP WordPress ()
- Comments/Discussion Not enabled on newly created posts/pages
- WordPress Pages “allow comments” meta option can’t be checked
- jQuery to Create Button to Show/Hide WordPress Comments and to Hide Comments by Default
- Comment form – different title if no comment yet
- WordPress Comments jQuery Doesn’t submit
- display only parent replies count in index.php
- wp_query select if have comments
- How to batch convert comments to posts?
- I need help about wordpress of members section