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 the purpose of the word ‘self’?
- Is it bad practice to comment out single lines of CSS with //?
- Can comments be used in JSON?
- Understanding Python super() with __init__() methods [duplicate]
- Can comments be used in JSON?
- How do I comment out a block of tags in XML?
- Is there a way to convert all comments into javadoc comments? [Eclipse/Java]
- How do I comment out a block of tags in XML?
- How do you do block comments in YAML?
- Can comments be used in JSON?
- Difference between Inheritance and Composition
- What is the difference between private and protected members of C++ classes?
- How do you comment out code in PowerShell?
- Reading from file in c++ ifstream
- Are static class variables possible in Python?
- Comments in Markdown
- Difference between virtual and abstract methods
- Comments in Markdown
- Visual Studio /**/ comment shortcut?
- Separating class code into a header and cpp file
- How to “comment-out” (add comment) in a batch/cmd?
- What is a mixin, and why are they useful?
- Error at constructor : Expected an identifier?
- Prefer composition over inheritance?
- What is Serialization?
- Error “C++ requires a type specifier for all declarations whilst defining methods”
- Is ‘# -*- coding: utf-8 -*-‘ also a comment in Python?
- C++ BlackJack Stuck trying to program Ace
- What are the differences between struct and class in C++?
- What is the meaning of single and double underscore before an object name?
- How to sort a list of objects based on an attribute of the objects?
- When should I use ‘self’ over ‘$this’?
- How to implement a binary search tree in Python?
- Already defined in .obj – no double inclusions
- Polymorphism vs Overriding vs Overloading
- How to add comments into a Xaml file in WPF?
- fatal error LNK1169: one or more multiply defined symbols found in game programming
- How to call a parent class function from derived class function?
- Python function overloading
- Is it possible to have a multi-line comments in R?
- What is the common header format of Python files?
- How to “comment-out” (add comment) in a batch/cmd?
- Meaning of @classmethod and @staticmethod for beginner?
- Meaning of @classmethod and @staticmethod for beginner?
- What is the difference between object-oriented languages and non object-oriented languages?
- An object reference is required to access a non-static member
- Multi-Line Comments in Ruby?
- When to use ‘raise NotImplementedError’?
- How to comment and uncomment blocks of code in the Office VBA Editor
- How to write a comment in a Razor view?
- How to write an inline-comment in Python
- Why do some classes require main methods and others do not?