🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Konto Get it free
Commentcode API icon
Möglicherweise aufgegeben Tested up to 4.7.0

Commentcode API

A shortcode API alternative.

Aktive Installationen<10Neu
Downloads · 30d38▲ +52% vs prev. 30d
Wertung—0 Bewertungen
Gesundheits-Score21/100In Gefahr
Downloads aller Zeiten1.3KSince Dec 2016
Unterstützung gelöst—Keine aktuellen Threads
erfordertWP 3.4PHP ANY
Downloads · 7d10▼ -9.1% week over week
Unser Urteil

Betrachten Sie eine Alternative

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.

  • Kleine Benutzerbasis (<10 aktive Installationen)
  • Bisher sehr wenige Bewertungen
  • Kein Update in 9 Jahren
  • Only tested up to WordPress 4.7 (latest is 7.1)

Wie stapelt es sich?

Side-by-side bei Installationen, Updates, Bewertungen und Support

Tägliche Downloads

123Sep 4Oct 18Dec 2
Gestern2
Täglicher Durchschnitt (1 Jahr)1
Spitzentag4Mar 23, 2026
Letzte 12 Monate236

Download-Spitzen folgen normalerweise einer neuen Version - jede Website, die automatisch aktualisiert wird, gilt als Download.

Ranglisten

Where Commentcode API stands today

WordPress.org Ranglisten suchen

Live-Position in der Plugin-Suche, Top 100
StichwortPositionKonkurrierende PluginsKategorie
API >100 10,000 Beste API-Plugins →
commentcode #1 1 Best commentcode plugins →
HTML comments >100 3,461 Best HTML comments plugins →
Shortcode >100 10,000 Beste Shortcode-Plugins →

About Commentcode API

Aus der offiziellen Readme · V1.0.0

Beschreibung

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
        )

)

Installation

  1. Upload commentcode-api.php and other files compressed in the zip folder to the /wp-content/plugins/ directory.
  2. Aktivieren Sie das Plugin über das „Plugins“-Menü in WordPress.

Änderungsprotokoll

1.0.0

  • Released.

Vollständiges Änderungsprotokoll auf WordPress.org →

Für Entwickler

Ist das dein Plugin? Zeigen Sie die Zahlen.

Fügen Sie Ihrer Website, Docs oder GitHub Readme ein Live-Badge hinzu. Es wird von selbst aktualisiert - kein Konto erforderlich.

Aktiv installiert Badge Bewertungsabzeichen Gesundheits-Score-Abzeichen

Best Commentcode API alternatives

Alle API-Plugins →
Alternativen
Rang Plugin Aktive Installationen Wertung Aktualisierten Gesundheit
1 WP-Einwilligung API WP-Einwilligung API Einfache Zustimmung API Zum Lesen und Registrieren der aktuellen Einwilligungskategorie. von Rogier Lankhorst 300K+ ★★★★★★★★★★ 5 (2) Vor 2 Tagen 76
2 Ruhe deaktivieren API Ruhe deaktivieren API Deaktivieren Sie die Nutzung des Rests API auf Ihrer Website für Benutzer der Website. Jetzt mit Unterstützung der Benutzerrolle! Von Dave McHale 80K+ ★★★★★★★★★★ 4.8 (38) Vor 3 Jahren 37
3 Mailgun für WordPress Mailgun für WordPress Senden Sie einfach E-Mails von Ihrer WordPress-Website über Mailgun über HTTP API oder SMTP. by Mailgun 70K+ ★★★★★★★★★★ 3.8 (50) Vor 2 Monaten 81
4 Verbindung herstellen Verbindung herstellen Verbindung herstellen. Make lässt Sie entwerfen, bauen und automatisieren, indem Sie sich mit WordPress in… von machen 70K+ ★★★★★★★★★★ 2.9 (27) Vor 4 Wochen 70
5 Deaktivieren Sie WP REST API Deaktivieren Sie WP REST API Deaktiviert die WP REST API für Besucher, die nicht bei WordPress angemeldet sind. von Jeff Starr 30K+ ★★★★★★★★★★ 4.8 (36) Vor 4 Monaten 84
6 WP REST Cache WP REST Cache Aktivieren Sie das Caching der WordPress REST API und automatischen Flush-Caches bei der Bearbeitung von WP-Admin. von acato 10K+ ★★★★★★★★★★ 4.9 (42) Vor 3 tagen 89
7 Wpgraphql für ACF Wpgraphql für ACF WpGraphQL für ACF integriert fortschrittliche benutzerdefinierte Felder nahtlos in wpGraphQL. von Jason Bahl 10K+ ★★★★★★★★★★ 5 (1) Vor 1 Woche 75
8 WPGET API – Verbinden Sie sich mit jeder externen Pause API WPGET API – Verbinden Sie sich mit jeder externen Pause API Verbinden Sie eine beliebige Pause API mit WordPress. WPGET API Ermöglicht eine einfache API-Integration, so dass Sie… von David Anderson / Team-Updraft 10K+ ★★★★★★★★★★ 5 (32) Vor 2 Wochen 94
9 WordPress Ruhe API (Version 2) WordPress Ruhe API (Version 2) Greifen Sie über eine benutzerfreundliche HTTP-REST API auf die Daten Ihrer Website zu. (Version 2) Von Ryan McCue 10K+ ★★★★★★★★★★ 4.2 (34) Vor 9 Jahren 43
10 WP REST API Controller WP REST API Controller Aktivieren Sie eine Benutzeroberfläche, um die Sichtbarkeit zu aktivieren und die Eigenschaften in WP REST API-Anforderungen anzupassen. Von Evan Herman 7K+ ★★★★★★★★★★ 4.3 (12) Vor 4 Jahren 38

Fragen und Antworten

Commentcode API: quick answers

Gerade Antworten, gezogen von Live WordPress.org Daten.

Quelle: 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).

Angetrieben von PageForge

Eine Vorlage und eine Tabelle. Eine echte Seite für jede Suche.

PageForge Verwandelt jede Zeile eines CSV in eine WordPress-Seite mit eigenem Titel, URL, SEO Felder und Schema entworfen. Kostenlos auf WordPress.org.

  • CSV und XLSX, plus Google Sheets auf Beruf und Unternehmen
  • seinen eigenen Titel, URL, SEO Felder und Schema für jede Seite
  • Arbeitet mit dem Blockeditor, Elementor, Divi und Avada
  • Kostenlos auf WordPress.org, keine Kreditkarte

↑↓ bewegen↵ öffnen