0
変更出力tamplateが必要です。 exempleについて:フック付きのfoogalleryで出力入力テンプレートを変更するには?
今、私は、このテンプレートを持っているが、データベース
<div id="foogallery-gallery-67" class="foogallery-container foogallery-default foogallery-link-image foogallery-lightbox-foobox-free spacing-width-10 hover-effect-zoom3 border-style-square-white alignment-center hover-caption-simple foogallery-default-loading">
<a href="http://wordpress.local/wp-content/uploads/2017/08/222-1.jpg" data-caption-title="Title" data-caption-desc="description text" data-attachment-id="128" class="">
<img src="http://wordpress.local/wp-content/uploads/cache/2017/08/222-1/705461751.jpg" width="150" height="150" />
</a>
</div>
に店をWICH私は私が追加できることを知っている1つのデータ - を追加する必要があります*属性(データ・カスタム)
<div id="foogallery-gallery-67" class="foogallery-container foogallery-default foogallery-link-image foogallery-lightbox-foobox-free spacing-width-10 hover-effect-zoom3 border-style-square-white alignment-center hover-caption-simple foogallery-default-loading">
<a href="http://wordpress.local/wp-content/uploads/2017/08/222-1.jpg" data-caption-title="Title" data-caption-desc="description text" data-attachment-id="128" data-custom="" class="">
<img src="http://wordpress.local/wp-content/uploads/cache/2017/08/222-1/705461751.jpg" width="150" height="150" />
</a>
</div>
直接データベースに、私はどのように出力と入力関数を再定義することができますので、将来問題がないことに興味があります。
class Plugin()
{
public function __construct()
{
}
}
$startPlugin = new Plugin();
そして、我々は、出力にFooGallary
テンプレートを変更する必要があります。