# cartflows/1.1.12/classes/class-cartflows-meta.php

CartFlows – Funnel Builder &amp; Checkout Plugin for WooCommerce, version 1.1.12. 76 lines.

- Page: https://pluginprobe.com/plugins/cartflows/1.1.12/code/classes/class-cartflows-meta.php
- Raw: https://pluginprobe.com/plugins/cartflows/1.1.12/raw/classes/class-cartflows-meta.php
- Modified: 2019-03-22T10:14:30+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/cartflows/1.1.12/code/classes/class-cartflows-meta.php#L10-L20`.

```php
<?php
/**
 * CartFlows Meta
 *
 * @package CartFlows
 * @since 1.0.0
 */

if ( ! class_exists( 'Cartflows_Meta' ) ) :

	/**
	 * CartFlows_Meta
	 *
	 * @since 1.0.0
	 */
	class Cartflows_Meta {
		/**
		 * Constructor
		 *
		 * @since 1.0.0
		 */
		public function __construct() {
		}

		/**
		 * Flow & Step Actions
		 *
		 * @param array $options options.
		 * @param int   $post_id post ID.
		 */
		function right_column_footer( $options, $post_id ) {
			?>
			<div class="wcf-column-right-footer">
				<?php submit_button( __( 'Update', 'cartflows' ), 'primary', 'save', false ); ?>

				<?php
				$flow_id = get_post_meta( $post_id, 'wcf-flow-id', true );
				if ( $flow_id ) {
					?>
					<a href="<?php echo esc_url( get_edit_post_link( $flow_id ) ); ?>" class="button pull-right wcf-back-to-flow-edit">
						<i class="dashicons dashicons-arrow-left-alt"></i> 
						<?php _e( 'Back to edit Flow', 'cartflows' ); ?>
					</a>
				<?php } ?>

			</div>
			<?php
		}

		/**
		 * Script Header (Used for add script into header)
		 *
		 * @param array $options options.
		 * @param int   $post_id post ID.
		 */
		function tab_custom_script( $options, $post_id ) {
			?>
			<div class="wcf-<?php echo wcf()->utils->get_step_type( $post_id ); ?>-custom-script-header wcf-tab-content widefat">
				<?php
				/* Script added onto the header */
				echo wcf()->meta->get_area_field(
					array(
						'label' => __( 'Custom Script', 'cartflows' ),
						'name'  => 'wcf-custom-script',
						'value' => htmlspecialchars( $options['wcf-custom-script'] ),
						'help'  => __( 'Custom script lets you add your own custom script on front end of this flow page.', 'cartflows' ),
					)
				);
				?>
			</div>
			<?php
		}
	}

endif;

```
