Commentcode API
A shortcode API alternative.
Considere uma alternativa
Commentcode API shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 10 years ago, and scores 21/100 on our health check.
- Base de usuários pequenas (<10 instalações ativas)
- Muito poucos comentários até agora
- Nenhuma atualização em 9 anos
- Testado apenas até WordPress 4.7 (mais recente é 7.1)
Como ele se acumula?
Lado a lado em instalações, atualizações, avaliações e suporteDownloads diários
Os picos de download geralmente seguem uma nova versão — cada site que atualiza automaticamente é um download.
Rankings
Where Commentcode API stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| api | >100 |
| commentcode | #1 |
| HTML comments | >100 |
| Shortcode | >100 |
About Commentcode API
Do Readme oficial · v1.0.0Descrição
Generate Custom Outputs with HTML Comments
Commentcode API lets you generate custom outputs with HTML comment-like codes.
It is similar to the Shortcode API except it takes a form of HTML comments and some few features.
Since it takes a form of HTML comments, even the user disables your plugin, the embedded code will not be visible, on contrary to shortcodes that remain in posts when their plugins are deactivated.
Does not leave a mess in posts
Say, you have been using a plugin that converts a plugin specific shortcode into custom outputs. Later you found something else that is more useful and uninstalled it.
But the shortcodes used by that plugin remained in hundreds of posts and it was too much work to manually delete them so you have to ask somebody to run SQL commands.
That’s a problem. What if the shortcode takes a form of an HTML comment? It won’t leave such a mess.
Syntax
It looks like this.
<!--- tag foo="bar" --->
<!--- tag color="#333" ---><p>Some outputs.</p><!--- /tag --->
Notice that tripe dashes are used in the both opening and closing part. So it won’t hardly conflict with generic HTML comments.
Supports Multi-dimensional Array Arguments
The shortcode cannot pass multi-dimensional arguments to the callback function.
The below attributes won’t be parsed.
[my_shortcode foo[1]="one" foo[2]="two"]
However, commentcode can handle it.
<!---my_shortcode foo[1]="one" foo[2]="two" --->
The attributes are interpreted as
array(
'foo' => array(
1 => 'one',
2 => 'two',
)
)
Preserved Letter Cases
The shortcode does not allow capitalized attribute names.
[my_shortcode CapitalName="I need it to be capitalized"]
The attribute is interpreted as
array(
'capitalname' => 'I need it to be capitalized',
)
This is not useful when you need to perform remote API requests which require argument names with capital letters.
However, the commentcode API preserves those argument names.
<!--- my_shortcode CapitalName="Please keep capitalization!" --->
will be
array(
'CapitalName' => 'Please keep capitalization!',
)
Register a Commentcode
Use the add_commentcode() function. It accepts two parameters.
1. (string) the commentcode tag.
2. (callable) a callback function which gets called when the commentcode of the specified tag is processed.
The callback function receives three parameters.
1. (string) The filtered text, usually an empty string.
2. (array) The attributes set in the commentcode.
3. (string) The commentcode tag name.
function get_my_commentcode( $text, $arguments, $tag ) {
return "<pre>" . htmlspecialchars( print_r( $arguments, true ) ) . "</pre>";
}
add_commentcode( 'my_commentcode', 'get_my_commentcode' );
For a test, while running the above code, try inserting <!---my_commentcode Foo="bar" numbers[ 1 ]="one" numbers[ 2 ]="two"---> in a post.
It will produce this output,
Array
(
[Foo] => bar
[numbers] => Array
(
[1] => one
[2] => two
)
)
Instalação
- Upload
commentcode-api.phpand other files compressed in the zip folder to the/wp-content/plugins/directory. - Ative o plugin através do menu 'Plugins' em WordPress.
Para desenvolvedores
Este é o seu plugin? Mostre os números.
Adicione um crachá ao vivo ao seu site, Documentos ou Readme do GitHub. Ele é atualizado por conta própria - nenhuma conta necessária.
Best Commentcode API alternatives
All api plugins →FAQ
Commentcode API: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: WordPress.org
Is Commentcode API free?
Yes. Commentcode API is free to download and use from the official WordPress.org plugin directory.
Is Commentcode API safe to use in 2026?
Commentcode API shows warning signs in 2026 — compare the alternatives below before installing. Was last updated 10 years ago, and scores 21/100 on our health check.
How many websites use Commentcode API?
Commentcode API is active on <10 WordPress websites and has been downloaded 1,269 times since it launched in December 2016. It was downloaded 38 times in the last 30 days.
Does Commentcode API work with WordPress 7.1?
Commentcode API is officially tested up to WordPress 4.7.0, while the latest release is 7.1.5. It may still work, but try it on a staging site first.
When was Commentcode API last updated?
The latest version, 1.0.0, was released on December 21, 2016 (10 years ago).
Who makes Commentcode API?
Commentcode API is developed and maintained by miunosoft.
What are the best alternatives to Commentcode API?
The most popular alternatives to Commentcode API are WP Consent API (300K+ installs), Disable REST API (80K+ installs) and Mailgun for WordPress (70K+ installs).
Alimentado por PageForge
Um modelo e uma planilha. Uma página real para cada pesquisa.
PageForge Transforma cada linha de um CSV em uma página WordPress com seu próprio título, URL, SEO campos e esquema, construído no layout que você já desenhou. Gratuito em WordPress.org.
- CSV e XLSX, mais Google Sheets em Profissional e Empresarial
- Seu próprio título, URL, SEO campos e esquema para cada página
- Funciona com o editor de blocos, Elementor, Divi e Avada
- Gratuito em WordPress.org, sem cartão de crédito
