Skip to content

Instantly share code, notes, and snippets.

@matori
Last active December 24, 2015 21:18
Show Gist options
  • Save matori/6863985 to your computer and use it in GitHub Desktop.
Save matori/6863985 to your computer and use it in GitHub Desktop.
記事タイトルと投稿タイプの指定orタームとタクソノミーの指定で簡単リンクなショートコード
<?php
require_once('path/to/EzLink.php');
$ezlink_opt = array(
'invalid_shortcode' => array(
'text' => '[????]'
));
$EzLink = new EzLink($ezlink_opt);
add_shortcode('ezlink', array($EzLink, 'ezlink_shortcode'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment