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?
- Where to store PHP files created by plugin / themes
- 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
- How to get Post ID with the Add Filter Function
- Explanation of the “posts_join” and “posts_fields” filter hooks?
- 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 modify post content before writing to database?
- Actions or filters fired when data is saved in a custom table
- Determine which theme location a wp_get_nav_menu_items is for
- Display only certain posts based on visitor’s country?
- How to use filter hook ‘post_updated_messages’ in coherence with action hook ‘save_post’
- Conditional add_filter?
- Is it possible to create an action hook using do_action() within add_action()?
- $wp_filesystem returns NULL. What are the dependencies?
- Dynamically Override Fancy Title
- Calling apply_filters on non-documented hooks
- How to allow Unfiltered HTML in a wordpress multisite install
- How to store accumulate multiple option values in a single array using Options_API
- Changing bloginfo description from a plugin
- Is there a way to verified if an add_filter is already applied?
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- multiple functions with same filter
- Woocommerce – Hide a Column in Cart Table
- Show comments fields in two columns
- How to set a custom path, for ajax image upload folder in admin?
- add_filter : Passing an array instead of the callback function?
- How to call function at the bottom of post using plugin?
- Namespaced action and filter tags
- Can wp_list_comments output into variable?
- Two functions utilizing registration_errors filter
- Comments do not respect display_name setting, how to make plugin to overcome this
- Is there a Filter that I can use to filter the tags before they are inserted in to the database?
- WordPress is automatically linking plain text email addresses
- get_current_screen() return null
- Custom filter in admin edit custom post type responding with invalid post type?
- Add code inside specific wordpress standard function
- $reverse_top_level works the opposite way according to Codex?
- Creating a plugin to sanitize comment and the url field before display only
- Why doesn’t my simple the_title filter get applied?
- How to filter the_content() & include content from template
- How can I remove a function that has been added to wordpress with add_filter?
- Prefixing plugin hooks (actions/filters) with a wrapper class or functions
- Can’t get woocommerce_get_price_html to work [closed]
- Search and Filter
- WordPress custom taxonomy check box to dropdown
- Widget HTML Display Problem
- wordpress JSONAPI introspector always limits number at 10?
- is pre_get_comments not working?
- WordPress Specified file failed upload test
- Check if variable is set in filter
- Remove an action by extending class and replacing it
- Bind a function with its own argument to show something dynamically after every content
- Make Database query only when option is updated
- Getting a WordPress Debug Strategy
- Hook add_attachment error
- WooCommerce change Tax Class programmatically when Recalculating an existing Order [closed]
- How do I add custom HTML to the content of an archive page’s posts?
- Update variable value via add_filter
- Gravity Forms Anchor only on Front Page?
- How to find list of all functions bind to a particular hook from my plugin?
- WP_NAV_MENU filter targets all menus
- How does “Your comment is awaiting moderation” work?
- how to get the top 10 popular blogs
- How do i remove the title from a specific page
- Can / should a widget plugin define its own Widget Area?
- Is there an action_filter hook to add content before the post title?
- Adding Permalink to Slides with ‘Simple Nivo Slider’ plugin?
- Adding tables to dashboard pages programmatically?
- Why doesn’t update_post_meta work for certain strings?
- disable defaault wordpress comments from a plugin
- “Rendering of admin template [path to template] failed”
- How to determine which capability to use?
- How to check if `comment_meta` exists before inserting the comment?
- How to get the `comment_post_ID`?
- How to Create custom block for displaying information in content section which act like shortcode
- add_filter postbox_classes multiple post types
- Override category archive page title (not the head title)
- Override woocommerce loop-start.php from theme using plugin?
- 500 Internal server error wp_handle_upload_prefilter
- WordPress Plugin Boilerplate – add actions and/or filters based on user’s role
- Redirect theme directory to plugin theme directory
- WordPress Reset password Strength set to medium
- Change Front page displays settings conditionally when user is online
- I have a plugin where in I have to change the title of the page dynamically by sending parameter to the_title filter
- Single_template for a custom post type created from a plugin is returning an empty 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
- WordPress permalink setting
- Add custom filter to register data in array
- wp_mail_from not changing from address
- append code after the_content not working
- 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?