🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
JSM file_get_contents() Shortcode icon
Activement maintenu Testé avec WP 7.1 #15 in file

JSM file_get_contents() Shortcode

A safe and reliable WordPress shortcode for PHP’s file_get_contents() function.

Installations actives200+100+ niveaux
Téléchargements · 30D315▲ +9.8% vs prev. 30d
Évaluation5/51 avis
Score de santé76/100Bon
Téléchargements de tous les temps14.8KDepuis juin 2014
Support résolu—Aucun fil de discussion récent
A besoin deWP 6.0PHP 7.4.33+
Téléchargements · 7j85▼ -12,4% semaine après semaine
Notre verdict

Choix solide

JSM file_get_contents() Shortco… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 200+ sites, is rated 5/5 and was last updated 1 week ago, and scores 76/100 on our health check.

  • Développé activement — Dernière mise à jour il y a 1 semaine
  • Testé avec le dernier WordPress (7.1)
  • Petite base d'utilisateurs (plus de 200 installations actives)
  • Très peu de critiques jusqu'à présent

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

81624Sep 6Oct 20Dec 4
Hier7
Moyenne quotidienne (1 ans)5
Jour de pointe3214 Août 2026
12 Derniers mois1.7K

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where JSM file_get_contents() Sho… stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
file #81 10,000 Best file plugins →
file_get_contents #1 255 Best file_get_contents plugins →
include #65 10,000 Best include plugins →
shortcode #66 10,000 Meilleurs plugins de shortcode →
ouverture >100 10,000 Meilleurs plugins d'URL →

Adoption de version

Part de sites actifs par version.

  • 2.793.0%
  • 2.47.0%

Répartition des notes

★★★★★ ★★★★★ 5 sur 1 avis

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About JSM file_get_contents() Shortcode

À partir du Lisezmoi officiel · v2.7.1

Description

A safe and reliable WordPress shortcode for PHP’s file_get_contents() function.

Shortcode Attributes

  • body = Keep only the content between <body></body> HTML tags (default is true).
  • cache = Number of seconds to cache the contents (defaults is 3600 seconds).
  • class = Add a class to the content ‘div’ container (default is none).
  • code = Wrap the content in a <code></code> container (default is false).
  • code_class = Add a class to the ‘code’ container (default is none).
  • code_lang = Escape HTML characters, wrap the content in a <pre><code></code></pre> container, and add a language class to the ‘code’ container (default is none).
  • esc_html = Escape HTML characters (default is false).
  • esc_html_pre_code = Escape HTML characters and wrap the content in a <pre><code></code></pre> container (default is false).
  • file = Path to a local file (relative to the wp-content/ folder).
  • filter = Apply the named filter to the content (default is none).
  • more = Add a more link on non-singular web pages (default is true).
  • pre = Wrap the content in a <pre></pre> container (default is false).
  • pre_class = Add a class to the ‘pre’ container (default is none).
  • pre_code = Wrap the content in a <pre><code></code></pre> container (default is false).
  • pre_lang = Escape HTML characters, wrap the content in a <pre><code></code></pre> container, and add a language class to the ‘pre’ container (default is none).
  • pre_title = Add a title to the ‘pre’ container (default is none).
  • url = URL or file URI.
  • utf8 = Encode HTML entities (default is true).

Note that all file paths (not URLs) are relative to the wp-content/ folder. For security reasons, it is not possible to include files outside the wp-content/ folder. As an example, the shortcode attributes url="file://dir/file.html" and file="/dir/file.html" are both read as wordpress/wp-contents/dir/file.html. The .. folder name is also stripped from file paths to prevent backing out of the wp-content/ folder.

Shortcode Name

The WPFGC_SHORTCODE_NAME constant can be defined in your wp-config.php file to add an additional custom shortcode name (the default shortcode names are ‘wp-file-get-contents’ and ‘wpfgc’).

define( 'WPFGC_SHORTCODE_NAME', 'include' );

Shortcode Examples

&#91;wpfgc url="http://example.com/dir/file.html"&#93;

&#91;wpfgc url="http://example.com/counter/" cache="7200"&#93;

&#91;wpfgc url="file://dir/file.html"&#93;

&#91;wpfgc file="/dir/file.txt" pre="true" filter="my_custom_filter_name" cache="600"&#93;

&#91;wpfgc file="examples/example-1.php" code_lang="php"&#93;

Journal de modifications

(2023/12/20) Added sanitation for file path and URL values.

Version Numbering

Version components: {major}.{minor}.{bugfix}[-{stage}.{level}]

  • {major} = Major structural code changes and/or incompatible API changes (ie. breaking changes).
  • {minor} = New functionality was added or improved in a backwards-compatible manner.
  • {bugfix} = Backwards-compatible bug fixes or small improvements.
  • {stage}.{level} = Pre-production release: dev < a (alpha) < b (beta) < rc (release candidate).

Repositories

Changelog / Release Notes

Version 2.7.1 (2023/12/20)

  • Nouvelles fonctionnalités
    • None.
  • Améliorations
    • None.
  • Correction de bugs
    • Added sanitize_text_field() sanitation for file path value.
    • Added wp_http_validate_url() sanitation for URL value (props Erwan Le Rousseau @ WPScan).
  • Notes de développeur
    • None.
  • Requires At Least
    • PHP v7.4.33.
    • WordPress v6.0.

Journal des modifications complet sur WordPress.org →

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best JSM file_get_contents() Short… alternatives

All file plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 Theme Editor Theme Editor Theme Editor allows you to edit theme files, create folder, upload files and remove any… par mndpsingh287 50K+ ★★★★★★★★★★ 4.6 (128) il y a 9 mois 50
2 Phoenix Media Rename Phoenix Media Rename The Phoenix Media Rename plugin allows you to easily rename (and retitle) your media files… by crossi72 50K+ ★★★★★★★★★★ 4.7 (75) Il y a 2 semaines 87
3 What The File What The File What The File is the best tool to find out what template parts are used to display the page… by Barry Kooij 30K+ ★★★★★★★★★★ 4.9 (883) il y a 10 mois 63
4 Télécharger les pièces jointes Télécharger les pièces jointes Télécharger les pièces jointes est une nouvelle approche de la gestion des téléchargements dans WordPress. Cela vous permet de… par factory 8K+ ★★★★★★★★★★ 4.5 (46) il y a 1 semaine 91
5 FileBird Document Library FileBird Document Library Create WordPress document library using FileBird and Gutenberg or any WordPress page… par équipe ninja 5K+ ★★★★★★★★★★ 4.9 (8) Il y a 2 mois 84
6 Pièces jointes WP – Gestion des fichiers et listes de téléchargement plus intelligentes Pièces jointes WP – Gestion des fichiers et listes de téléchargement plus intelligentes Attachez des fichiers à n'importe quel article ou page et laissez les pièces jointes WP vous les lister, avec des icônes, des fichiers… Par Marco Milesi 3K+ ★★★★★★★★★★ 4.5 (43) Il y a 2 mois 86
7 WP-DownloadManager WP-DownloadManager Adds a simple download manager to your WordPress blog. de Lester Chan 2K+ ★★★★★★★★★★ 4 (37) Il y a 2 mois 68
8 Store file uploads for Contact Form 7 Store file uploads for Contact Form 7 When this is active, attachments sent trough Contact Form 7 shortcode [file ] will be… par mirceatm 1K+ ★★★★★★★★★★ 5 (7) il y a 7 mois 61
9 Custom Post Type Attachment Custom Post Type Attachment This plugin will allow you to upload files to your post or pages or any other custom post… par aviplugins.com 700+ ★★★★★★★★★★ 5 (3) Il y a 2 ans 37
10 BP Group Documents BP Group Documents BP Group Documents creates a page within each BuddyPress group to upload and any type of… par Lenasterg 500+ ★★★★★★★★★★ 5 (15) Il y a 1 an 42

FAQ

JSM file_get_contents() Shortcode: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is JSM file_get_contents() Shortco… free?

Yes. JSM file_get_contents() Shortco… is free to download and use from the official WordPress.org plugin directory.

Is JSM file_get_contents() Shortco… safe to use in 2026?

JSM file_get_contents() Shortco… is a solid plugin choice in 2026, with a few things worth checking first. It runs on 200+ sites, is rated 5/5 and was last updated 1 week ago, and scores 76/100 on our health check.

How many websites use JSM file_get_contents() Shortco…?

JSM file_get_contents() Shortco… is active on 200+ WordPress websites and has been downloaded 14,799 times since it launched in June 2014. It was downloaded 315 times in the last 30 days.

Does JSM file_get_contents() Shortco… work with WordPress 7.1?

Yes. The developer has tested JSM file_get_contents() Shortco… up to WordPress 7.2, the latest release. It requires WordPress 6.0 or newer.

What PHP version does JSM file_get_contents() Shortco… need?

JSM file_get_contents() Shortco… requires PHP 7.4.33 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was JSM file_get_contents() Shortco… last updated?

The latest version, 2.7.1, was released on November 26, 2026 (1 week ago).

Who makes JSM file_get_contents() Shortco…?

JSM file_get_contents() Shortco… is developed and maintained by JS Morisset.

What are the best alternatives to JSM file_get_contents() Shortco…?

The most popular alternatives to JSM file_get_contents() Shortco… are Theme Editor (50K+ installs), Phoenix Media Rename (50K+ installs) and What The File (30K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir