Skip to content

Commit

Permalink
コメント調整
Browse files Browse the repository at this point in the history
  • Loading branch information
kurudrive committed Feb 6, 2025
1 parent d1a0a28 commit b0c5292
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/call-to-action/package/block/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,11 @@ function veu_cta_block_callback( $attributes, $content ) {
global $post;
$post_config = '';
if ( $post ) {
// 表示(CTA配置)側ページの CTA 表示設定を取得.
$post_config = get_post_meta( $post->ID, 'vkexunit_cta_each_option', true );
}

// 各記事で非表示指定されていなかったら表示する
// 表示(CTA配置)側のページでCTAを非表示に指定されていなかったら表示する
if ( 'disable' !== $post_config ) {
if ( ! empty( $attributes['postId'] ) ) {
$cta_id = 'random' !== $attributes['postId'] ? $attributes['postId'] : Vk_Call_To_Action::cta_id_random();
Expand Down

0 comments on commit b0c5292

Please sign in to comment.