首页 > TAG信息列表 > permalink
自定義wordpress的custom post permalink
1. wordpress hook in construct() function __construct() { add_filter('post_type_link', [$this, 'custom_nft_permalink'], 1, 3); } 2. rewrite post link public function initialize() { $args = array( 'rewrite' =>