Here you go… Use this code:
<?php
add_filter('comment_form_defaults', 'change_allowed_fields');
function change_allowed_fields($defaults)
{
//All the comment form fields are available in the $defaults array
$defaults['comment_notes_after'] = "<b>Markdown for the win!</b>";
return $defaults;
}
This will work!
Related Posts:
- Difference Between Filter and Action Hooks?
- How to create an API for my plugin?
- Get page content using slug
- Where to store PHP files created by plugin / themes
- How to add sub-menu to a menu generated by wp_nav_menu by using plugin
- How can I load a page template from a plugin?
- What is the correct way to build a widget using OOP
- Using query_vars filter
- Writing a plugin that notify my friends of new post that mentions(@) them
- How to get Post ID with the Add Filter Function
- Explanation of the “posts_join” and “posts_fields” filter hooks?
- How do you use the plugin boilerplate loader class to hook actions and filters?
- add_filter OO with parameters
- How Can I Add a Filter to Class Instance Only?
- Is it possible to remove next-post / previous-post with out creating a custom template?
- How do I Make a Theme “plugin-ready”?
- Has anyone managed to integrate the wp_editor inside a widget?
- How to remove unwanted panels inside InspectorControls from core blocks in Gutenberg
- function triggered by “manage_users_custom_column” filter not working
- Proper way to use apply_filters() with class functions?
- add_filter and remove_filter added before and after wp_query
- How to modify post content before writing to database?
- Actions or filters fired when data is saved in a custom table
- Some nav-menu filters do nothing
- Filter on the_content ignores shortcodes
- Determine which theme location a wp_get_nav_menu_items is for
- How to change wordpress post title?
- Display only certain posts based on visitor’s country?
- What’s the difference between hooks, filters and actions? [duplicate]
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Conditional add_filter?
- Change comments form title on a page by page basis
- How to list the Hooks and order of execution in current loading page? [duplicate]
- Two-step login process – Is it possible?
- Why are two functions over-riding each other?
- Is it possible to create an action hook using do_action() within add_action()?
- $wp_filesystem returns NULL. What are the dependencies?
- Hook for post permalink update
- Dynamically Override Fancy Title
- Calling apply_filters on non-documented hooks
- WordPress Media mime type filter problem 4.0
- How to allow Unfiltered HTML in a wordpress multisite install
- How to store accumulate multiple option values in a single array using Options_API
- How to add custom content under plugin row in WordPress admin plugin list?
- Changing bloginfo description from a plugin
- Is there a way to verified if an add_filter is already applied?
- Admin-ajax.php appending a status code to ajax response
- Define a function outside a class and call the function using action or filter hook
- Does add_filter work outside functions.php
- Synchronize Custom post type tags to WordPress default posts tags
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- comment_email hook doesn’t seem to work for comment editor field
- multiple functions with same filter
- Woocommerce – Hide a Column in Cart Table
- Show comments fields in two columns
- Version upgrade: can my plugin filter the SQL statements issued during a database upgrade?
- How to set a custom path, for ajax image upload folder in admin?
- Show dialog box in TinyMCE plugin and use WordPress php functions in it
- add_filter : Passing an array instead of the callback function?
- preprocess_comment array doesn’t have comment_ID
- How do I add custom HTML to the content of an archive page’s posts?
- Update variable value via add_filter
- how to load the comment template from a plugin
- How to add delete, approve, spam Links to Comments
- Redirect theme directory to plugin theme directory
- WordPress Reset password Strength set to medium
- Change Front page displays settings conditionally when user is online
- login_message filter not working
- Add_action not calling callback function
- I have a plugin where in I have to change the title of the page dynamically by sending parameter to the_title filter
- WordPress Dropdown image select
- Modify search form with plugin
- Single_template for a custom post type created from a plugin is returning an empty page
- foreach argument to get specific file types getting too many returns
- get_comment_meta() for a filter hook in a plugin
- Which filter to use to pre-parse form elements, which are generated by plugin’s shortcode?
- Custom signature appears twice on page
- Caption Shortcode: what filter to change the image size?
- Confusing $tag specification for apply_filters call, in core options.php code
- Hook for plugin to show content for certain urls
- How to filter get_adjacent_post()?
- Stop theme displaying comments
- WordPress permalink setting
- Add custom filter to register data in array
- Get Commentor IP When Marking Comment As Spam
- post_results filter confused by pagination in sidebar and main section
- How do I replace title with my plugin?
- Apply Filters Causing a 500 Internal Server Error
- wp_mail_from not changing from address
- append code after the_content not working
- add_filter adds output in the head
- isset($_POST[‘submit’]) ignored on comment submission
- Apply function on all action hooks?
- Do Not Back Up? Is there any accepted way to tell backup and clone plugins to skip a certain file? [closed]
- Ninja Forms: Front-End Forms, Post ID?
- Permissions error when I use my plugin to delete comments in the front-end
- Edit password change email text or disable it
- wp_head filter not executed inside custom class
- Attributes array not saving values
- Using send_password_email filter after wp_update_user