Linux 软件免费装
Banner图

Get Filesize Shortcode

开发者 ikaring
更新时间 2023年12月21日 18:09
PHP版本: 5.6 及以上
WordPress版本: 6.4.2
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

shortcode pdf filesize

下载

1.0 1.0.10 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.0.1 1.0.4

详情介绍:

"Get Filesize Shortcode" is a simple shortcode to get filesize of a file( eg. PDF, JPG, PNG ... ) with a human readable format, using the largest unit the bytes will fit into. Now added Get filesize block to display file link with file size. 用法 Put [filesize]http://yoursite.com/path/to/file.pdf[/filesize] anywhere in a post. Or you can use url attr instead. [filesize url='http://yoursite.com/path/to/file.pdf'] Also you can place <?php echo do_shortcode('[filesize]http://yoursite.com/path/to/file.pdf[/filesize]'); ?> in your templates. As to "Get filesize" block, search 'get filesize' in Text block category and insert it. Set file title and file url, and it generates a text link to the file with file size afterwards. You can toggle Preview/Edit by clicking Preview/Edit button in toolbar of the block. 笔记

安装:

  1. Upload get-filesize-shortcode folder to the /wp-content/plugins/ directory
  2. 通过 WordPress 的“插件”菜单激活插件

升级注意事项:

None.

更新日志:

1.2.0 1.0.10 1.0.8 1.0.4 1.0.3 1.0.2 1.0