JSM file_get_contents() Shortcode
A safe and reliable WordPress shortcode for PHP’s file_get_contents() function.
Escolha sólida
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.
- Desenvolvido ativamente — última atualização 1 semana atrás
- Testado com as últimas WordPress (7.1)
- Pequena base de usuários (mais de 200 instalações ativas)
- Muito poucos comentários até agora
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 JSM file_get_contents() Sho… stands todayWordPress.org Classificações de pesquisa
Posição ao vivo na pesquisa de plugins, top 100| Palavra chave | Posição |
|---|---|
| file | #80 |
| file_get_contents | #1 |
| include | #65 |
| Shortcode | #66 |
| URL | >100 |
Adoção da versão
Compartilhamento de sites ativos por lançamento.
Divisão de classificação
★★★★★ ★★★★★ 5 de 1 comentários
About JSM file_get_contents() Shortcode
From the official readme · v2.7.1Descrição
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"andfile="/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
[wpfgc url="http://example.com/dir/file.html"]
[wpfgc url="http://example.com/counter/" cache="7200"]
[wpfgc url="file://dir/file.html"]
[wpfgc file="/dir/file.txt" pre="true" filter="my_custom_filter_name" cache="600"]
[wpfgc file="examples/example-1.php" code_lang="php"]
Log de Changes
(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)
- New Features
- None.
- Melhorias
- None.
- Bugfixes
- Added
sanitize_text_field()sanitation for file path value. - Added
wp_http_validate_url()sanitation for URL value (props Erwan Le Rousseau @ WPScan).
- Added
- Developer Notes
- None.
- Requires At Least
- PHP v7.4.33.
- WordPress v6.0.
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 JSM file_get_contents() Short… alternatives
All file plugins →FAQ
JSM file_get_contents() Shortcode: quick answers
Respostas diretas, extraídas de dados ao vivo WordPress.org.
Fonte: 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 317 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).
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
