=VLOOKUP(O2;$Q:$R;2;FALSE)
=ВПР(O2;$Q:$R;2;ЛОЖЬ)
function wpp_get_post_short() {
if ( empty( $id ) ) {
__return_false();
}
$atts = shortcode_atts( [
'id' => $id
], $atts );
$post = get_post( $atts['id'] );
if ( empty( $post ) ) {
__return_false();
}
$out = "<div class=\"my-post-{$id}\">";
$out .= sprintf( '<h2>%s</h2>', $post->post_title );
$out .= sprintf( '<div>%s</div>', do_shortcode( $post->post_content ) );
$out .= '</div>';
return $out;
}
add_shortcode( 'get_my_post', 'wpp_get_post_short' );
[get_my_post id="5"]
<?php the_field('header_phone_text', options); ?>
add_filter( 'woocommerce_order_button_html', 'custom_order_button_html');
function custom_order_button_html( $button ) {
//Ваши изменения с кнопкой
$button = '<input type="submit" class="g-recaptcha button alt" data-sitekey="свой ключ" data-callback="onSubmit" name="woocommerce_checkout_place_order" id="place_order" value="' . esc_attr( $order_button_text ) . '" data-value="' . esc_attr( $order_button_text ) . '" />';
return $button;
}