I simply want to add to that indicating Markdown is active, and presumably the ideal way to do that is to alter the output of allowed_tags(). Is this possible to do with add_filter(), or am I looking at the wrong function?

I want to modify the plugin itself, so that the extra line is added only if the plugin is active.

Answers

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;
}

Related Articles

I'm using the PHP Markdown plugin, and I'd like to modify it so that it adds some text to the bottom of the comment form indicating that Markdown is supported in comments. I've been modifying my theme to do this, but the theme is updated quite freque

I am a sed novice. I would like to use sed to delete commented lines in a text file. In my series of text files, commented lines begin with either the # symbol or the @ symbol (i.e., they are files originally intended for plotting in xmgrace). Suppos

In Sublime Text 2 I can create a comment next to a tag by using shortcut alt+cmd+/ which results in something like this: <a href=""></a><!-- --> How can I shortcut comments next to tags in BBedit or is this not possible? I do s

I have the following code to alter the way comment form is displayed. After the bellow code everything is displayed as i want to but it does not add the comments. global $user; if ($user->uid) { $form['author']['_author'] = array ( '#tittle' => 'Nam

I'm looking for a tool that help me & my wife to share our comments/hightlighted-texts on web pages that we have read. It would be lovely to have such a tool that: Allow us to create user account Create comments & highlighted texts (called commhil

for a long time I dream to have a songs lastfm tags in my music library, so I can use them to quickly generate playlists. There used to be a way to do that in amarok 1.4, but it never was stable. Than there is MusicBrainz Picard's lastfm/lastfmplus p

Any idea how can I remove this in $vars['closure']; ? <!-- SiteCatalyst code version: H.19.4 Copyright 1997-2009 Omniture, Inc. More info available at http://www.omniture.com --> <script type="text/javascript" language="JavaScript&

What's the correct way to comment out sections of explanatory text (included for humans to read) in a .bib file? I would like biber/biblatex to simply ignore this text. When I put in text like #########################################################

I have autocomplete activated with "auto_complete_selector": "source", however when I'm writing long-form comment blocks the autocomplete suggestions are distracting (i.e. typing current attempts to autocomplete to current). Can autoco

How can I remove some of the allowed HTML tags in comments/posts? For whatever reason, the following code, placed in my theme's functions.php, didn't work: add_action('init', 'my_html_tags_code', 10); function my_html_tags_code() { define('CUSTOM_TAG

Sometimes when I'm writing a macro in Excel's Visual Basic Editor (VBE), I want to comment out a block of code to test the macro without it. I know I could go to each line and type an apostrophe ('), but this is tedious! Can I do this for a larger bl

I have an xml file (client_23.xml) in which I need to alter one line and remove one whole tag from it so I came up with perl script: In my xml file, I have a block like this. There will be only one instance of <hello>collect_model = 1</hello>

I have an existing column whose data type is TEXT. Now I realized that the values are just single strings. So, the data type VARCHAR(n) should have been proper in my case. So, I wanted to change the data type from TEXT to VARCHAR(n). Now my question

I wrote some info on a couple JPEGs using Windows File Explorer. In Explorer, I wrote info on the "Comments" and the "Subject" tags. However, when I import the JPEGs into Adobe Lightroom, I can't find the info I wrote. Does Lightroom n

In the Theme Customizer, is it possible to just have text (for example a comment, or a HTML <p> tag with text), or a setting that has no type (but a title of Text I need to display). For example, I may want to say - Go to XXX to do this at the botto

In my blog, i answer comments inline by editing them to add "admin says: blah blah". i do this so i won't bump up the comment count with all my admin comments. I am using the PODS plugin to add a custom field to all of my comments, and when i ed

I want to hide comments for a certain time and show a sample text in the comment text area. Say, there are 50 comments on a post. What I want is- hide every comments on this post and there will be a text saying "this comment is hidden". Is it po

I try to make a comment on the right (or left) of one line of proof. But the align* environment automatically move the whole equations to the left to leave space for the comment. But I still want the equations to be in the center (the comment is shor

SQLite is a C library that implements an SQL database engine. It is a Relational Database Management System (or RDBMS). Most of the SQL databases work with the client/server model. Take MySQL for an example. To enter and receive data from a MySQL dat