Cartflows_Checkout_Meta::tab_product_options( array $options, int $post_id )
Product options tab.
Parameters
- $options
-
(Required) options.
- $post_id
-
(Required) post ID.
Source
File: admin-legacy/modules/checkout/class-cartflows-checkout-meta.php
public function tab_product_options( $options, $post_id ) {
?>
<div class="wcf-product-options wcf-tab-content widefat">
<?php
if ( ! _is_cartflows_pro() ) {
echo wcf()->meta->get_description_field(
array(
'name' => 'wcf-upgrade-to-pro',
/* translators: %s: link */
'content' => '<i>' . sprintf( esc_html__( 'Upgrade to %1$sCartFlows Pro%2$s for Product Options feature.', 'cartflows' ), '<a href="https://cartflows.com/" target="_blank">', '</a>' ) . '</i>',
)
);
} elseif ( _is_cartflows_pro() && _is_cartflows_pro_ver_less_than( '1.5.4' ) ) {
$version = '1.5.4';
$file_path = 'cartflows-pro/cartflows-pro.php';
$upgrade_link = wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' ) . $file_path, 'upgrade-plugin_' . $file_path );
echo wcf()->meta->get_description_field(
array(
'name' => 'wcf-upgrade-to-pro',
// translators: %s: link.
'content' => '<i>' . sprintf( esc_html__( 'Update %1$sCartFlows Pro%2$s to %3$s or above for Product Options', 'cartflows' ), '<a href="' . $upgrade_link . '" target="_blank">', '</a>', $version ) . '</i>',
)
);
}
do_action( 'cartflows_product_options_tab_content', $options, $post_id );
?>
</div>
<?php
}