# wp-to-buffer/6.2.1/lib/social/views/settings-post-action-status.php

Social Media Auto Poster – Schedule &amp; Publish to Buffer, version 6.2.1. 307 lines.

- Page: https://pluginprobe.com/plugins/wp-to-buffer/6.2.1/code/lib/social/views/settings-post-action-status.php
- Raw: https://pluginprobe.com/plugins/wp-to-buffer/6.2.1/raw/lib/social/views/settings-post-action-status.php
- Modified: 2026-08-19T11:19:16+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/wp-to-buffer/6.2.1/code/lib/social/views/settings-post-action-status.php#L10-L20`.

```php
<?php
/**
 * Outputs the single status configuration form.  Its values are populated by statuses.js, based
 * on the status that has been selected for editing.
 *
 * @package WPZinc\Social
 * @author  WP Zinc
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}
?>
<div id="<?php echo esc_attr( $this->base->plugin->name ); ?>-status-form-container" class="hidden">
	<div id="<?php echo esc_attr( $this->base->plugin->name ); ?>-status-form" class="wpzinc-social-status-form">
		<div class="notice-inline notice-warning pinterest hidden full">
			<p>
				<?php
				esc_html_e( 'You need to create at least one Pinterest Board, and then refresh the screen to choose the board to post this status to.', 'wp-to-buffer' );
				?>
				<a href="<?php echo esc_attr( $this->base->plugin->documentation_url ); ?>/status-settings/#buffer-pinterest" target="_blank">
					<?php echo esc_html_e( 'Click here for instructions on creating a Pinterest board.', 'wp-to-buffer' ); ?>
				</a>
			</p>
		</div>

		<!-- Status Type and Text -->
		<div class="wpzinc-option status">
			<div class="full">
				<h3><?php esc_html_e( 'Status Type and Text', 'wp-to-buffer' ); ?></h3>
				<p class="description">
					<?php esc_html_e( 'The type of status to create and its text.', 'wp-to-buffer' ); ?>
				</p>

				<select name="<?php echo esc_attr( $this->base->plugin->name ); ?>_post_type" class="post_type" size="1">
					<?php
					foreach ( $this->base->get_class( 'common' )->get_status_post_type_options() as $status_post_type_key => $status_post_type_label ) {
						?>
						<option value="<?php echo esc_attr( $status_post_type_key ); ?>">
							<?php echo esc_attr( $status_post_type_label ); ?>
						</option>
						<?php
					}
					?>
				</select>

				<?php
				// Tags.
				$textarea = 'textarea.message';
				require 'settings-post-action-status-tags.php';
				?>

				<textarea name="<?php echo esc_attr( $this->base->plugin->name ); ?>_message" rows="3" class="widefat wpzinc-autosize-js message"></textarea>

				<?php
				// If we're editing a Post, Page or CPT, show the chararcter count.
				if ( isset( $post ) && ! empty( $post ) ) {
					?>
					<small class="characters">
						<span class="character-count"></span>
						<?php esc_html_e( 'characters', 'wp-to-buffer' ); ?>
					</small>
					<?php
				}
				?>
			</div>
		</div>

		<!-- Schedule -->
		<div class="wpzinc-option status">
			<div class="full">
				<h3><?php esc_html_e( 'Schedule', 'wp-to-buffer' ); ?></h3>
				<p class="description">
					<?php esc_html_e( 'When the status should be added to social media.', 'wp-to-buffer' ); ?>
				</p>

				<select name="<?php echo esc_attr( $this->base->plugin->name ); ?>_schedule" size="1" class="schedule widefat">
					<?php
					foreach ( $this->base->get_class( 'common' )->get_schedule_options( $post_type, $is_post_screen ) as $schedule_option => $label ) {
						?>
						<option value="<?php echo esc_attr( $schedule_option ); ?>"><?php echo esc_attr( $label ); ?></option>
						<?php
					}
					?>
				</select>
			</div>
		</div>

		<!-- Link -->
		<div class="wpzinc-option link">
			<div class="full">
				<h3><?php esc_html_e( 'Link', 'wp-to-buffer' ); ?></h3>
				<p class="description">
					<?php esc_html_e( 'The "primary" URL to use for the link preview / card. Additional links can be included in the status text above.', 'wp-to-buffer' ); ?>
				</p>

				<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_url" class="widefat url" />
			</div>
		</div>

		<!-- Pinterest -->
		<div class="wpzinc-option pinterest hidden">
			<div class="full">
				<h3><?php esc_html_e( 'Pinterest', 'wp-to-buffer' ); ?></h3>
				<p class="description">
					<?php
					esc_html_e( 'Define the Pinterest Board for this status to be sent to.', 'wp-to-buffer' );
					?>
				</p>

				<table class="widefat fixed striped">
					<tbody>
						<tr>
							<td width="20%">
								<label for="<?php echo esc_attr( $this->base->plugin->name ); ?>_pinterest_board">
									<?php esc_html_e( 'Board', 'wp-to-buffer' ); ?>
								</label>
							</td>
							<td>
								<!-- Pinterest: Sub Profile -->
								<select name="<?php echo esc_attr( $this->base->plugin->name ); ?>_pinterest[board]" id="<?php echo esc_attr( $this->base->plugin->name ); ?>_pinterest_board" size="1" class="widefat"></select> 
								<input type="url" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_pinterest[board]" id="<?php echo esc_attr( $this->base->plugin->name ); ?>_pinterest_board" placeholder="<?php esc_attr_e( 'Pinterest Board URL', 'wp-to-buffer' ); ?>" class="widefat" />
							</td>
						</tr>

						<?php
						if ( $this->base->supports( 'pinterest_title' ) ) {
							?>
							<tr>
								<td>
									<label for="pinterest_title">
										<?php esc_html_e( 'Pin Title', 'wp-to-buffer' ); ?>
									</label>
								</td>
								<td>
									<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_pinterest[title]" id="pinterest_title" placeholder="<?php esc_attr_e( 'Pin Title', 'wp-to-buffer' ); ?>" class="widefat" />
									<p class="description">
										<?php esc_html_e( 'An optional title. Text Tags are supported.', 'wp-to-buffer' ); ?>
									</p>
								</td>
							</tr>
							<?php
						}
						?>
					</tbody>
				</table>
			</div>
		</div>

		<?php
		if ( $this->base->supports( 'googlebusiness' ) ) {
			?>
			<!-- Google Business Profile -->
			<div class="wpzinc-option googlebusiness hidden">
				<div class="full">
					<h3><?php esc_html_e( 'Google Business Profile', 'wp-to-buffer' ); ?></h3>
					<p class="description">
						<?php
						echo esc_html_e( 'Optional: Define the status type (What\'s New, Offer or Event) and additional structured fields / data.', 'wp-to-buffer' );
						?>
					</p>

					<table class="widefat fixed striped">
						<tbody>
							<tr>
								<td width="20%">
									<label for="googlebusiness_post_type">
										<?php esc_html_e( 'Post Type', 'wp-to-buffer' ); ?>
									</label>
								</td>
								<td>
									<select name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[post_type]" id="googlebusiness_post_type" size="1" class="widefat">
										<option value="whats_new"><?php esc_attr_e( 'What\'s New', 'wp-to-buffer' ); ?></option>
										<option value="offer"><?php esc_attr_e( 'Offer', 'wp-to-buffer' ); ?></option>
										<option value="event"><?php esc_attr_e( 'Event', 'wp-to-buffer' ); ?></option>
									</select>
								</td>
							</tr>
							<tr class="whats_new event">
								<td>
									<label for="googlebusiness_cta">
										<?php esc_html_e( 'Call to Action', 'wp-to-buffer' ); ?>
									</label>
								</td>
								<td>
									<select name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[cta]" id="googlebusiness_cta" size="1" class="widefat">
										<option value="book"><?php esc_attr_e( 'Book', 'wp-to-buffer' ); ?></option>
										<option value="order"><?php esc_attr_e( 'Order', 'wp-to-buffer' ); ?></option>
										<option value="shop"><?php esc_attr_e( 'Shop', 'wp-to-buffer' ); ?></option>
										<option value="learn_more"><?php esc_attr_e( 'Learn More', 'wp-to-buffer' ); ?></option>
										<option value="signup"><?php esc_attr_e( 'Sign Up', 'wp-to-buffer' ); ?></option>
									</select>
								</td>
							</tr>
							<tr class="offer event">
								<td>
									<label for="googlebusiness_start_date_option">
										<?php esc_html_e( 'Start Date', 'wp-to-buffer' ); ?>
									</label>
								</td>
								<td>
									<select name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[start_date_option]" id="googlebusiness_start_date_option" size="1" class="widefat">
										<?php
										foreach ( $this->base->get_class( 'common' )->get_google_business_start_date_options( $post_type ) as $schedule_option => $label ) {
											?>
											<option value="<?php echo esc_attr( $schedule_option ); ?>"><?php echo esc_attr( $label ); ?></option>
											<?php
										}
										?>
									</select>

									<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[start_date]" id="googlebusiness_start_date" placeholder="<?php esc_attr_e( 'Custom Meta Field Name', 'wp-to-buffer' ); ?>" />
								</td>
							</tr>
							<tr class="offer event">
								<td>
									<label for="googlebusiness_end_date_option">
										<?php esc_html_e( 'End Date', 'wp-to-buffer' ); ?>
									</label>
								</td>
								<td>
									<select name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[end_date_option]" id="googlebusiness_end_date_option" size="1" class="widefat">
										<?php
										foreach ( $this->base->get_class( 'common' )->get_google_business_end_date_options( $post_type ) as $schedule_option => $label ) {
											?>
											<option value="<?php echo esc_attr( $schedule_option ); ?>"><?php echo esc_attr( $label ); ?></option>
											<?php
										}
										?>
									</select>

									<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[end_date]" id="googlebusiness_end_date" placeholder="<?php esc_attr_e( 'Custom Meta Field Name', 'wp-to-buffer' ); ?>" />
								</td>
							</tr>
							<tr class="offer event">
								<td>
									<label for="googlebusiness_title">
										<?php esc_html_e( 'Event / Offer Title', 'wp-to-buffer' ); ?>
									</label>
								</td>
								<td>
									<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[title]" id="googlebusiness_title" class="widefat" />
								</td>
							</tr>
							<tr class="offer">
								<td>
									<label for="googlebusiness_code">
										<?php esc_html_e( 'Coupon Code', 'wp-to-buffer' ); ?>
									</label>
								</td>
								<td>
									<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[code]" id="googlebusiness_code" class="widefat" />
								</td>
							</tr>
							<tr class="offer">
								<td>
									<label for="googlebusiness_terms">
										<?php esc_html_e( 'Terms and Conditions Text', 'wp-to-buffer' ); ?>
									</label>
								</td>
								<td>
									<input type="text" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_googlebusiness[terms]" id="googlebusiness_terms" class="widefat" />
								</td>
							</tr>
						</tbody>
					</table>
				</div>
			</div>
			<?php
		}
		?>

		<!-- Images -->
		<div class="wpzinc-option images">
			<div class="full">
				<h3><?php esc_html_e( 'Image', 'wp-to-buffer' ); ?></h3>
				<p class="description">
					<?php esc_html_e( 'The type of image to use.', 'wp-to-buffer' ); ?>
				</p>

				<table class="widefat fixed striped">
					<tbody>
						<tr>
							<td width="20%">
								<label for="<?php echo esc_attr( $this->base->plugin->name ); ?>_image">
									<?php esc_html_e( 'Image', 'wp-to-buffer' ); ?>
								</label>
							</td>
							<td>
								<select id="<?php echo esc_attr( $this->base->plugin->name ); ?>_image" name="<?php echo esc_attr( $this->base->plugin->name ); ?>_image" size="1" class="image">
									<?php
									foreach ( $this->base->get_class( 'image' )->get_status_image_options( false, $post_type ) as $value => $image_option ) {
										?>
										<option value="<?php echo esc_attr( $value ); ?>"><?php echo esc_attr( $image_option['label'] ); ?></option>
										<?php
									}
									?>
								</select>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>

```
