Linux 软件免费装

Shortcode Detector

开发者 dev_apocalypseboy
更新时间 2013年5月12日 15:36
捐献地址: 去捐款
PHP版本: 3.5.1 及以上
WordPress版本: 3.5.1
版权: GPLv2 or later

标签

shortcode detection

下载

详情介绍:

Detects shortcodes before wp_head() call to allow selective enqueuing of scripts and styles (i.e. js and css files) that are specifically used for the shortcode. How to use the plugin? Make sure that the shortcode you want to detect is defined. If it is a Wordpress shortcode then there's no need to define it. <?php add_shortcode( 'my_shorcode', 'my_function' ); ?> To detect the shortcode use the code below. Change 'my_shortcode' to the shortcode you want to detect. <?php add_action( 'shortcode_detected_my_shortcode', 'my_add_resources_function' ); ?>

安装:

  1. Upload shortcode_detector.zip to the /wp-content/plugins/ directory and unarchive.
  2. Activate the plugin through the 'Plugins' menu in WordPress.
Or
  1. Download it through the WordPress admin and activate.

更新日志:

1.0.0 1.0.1