WPCF7_Contact_Form_List_Table::column_shortcodepublicCF7 1.0

Метод класса: WPCF7_Contact_Form_List_Table{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$WPCF7_Contact_Form_List_Table = new WPCF7_Contact_Form_List_Table();
$WPCF7_Contact_Form_List_Table->column_shortcode( $item );
$item(обязательный)
.

Код WPCF7_Contact_Form_List_Table::column_shortcode() CF7 6.1.5

public function column_shortcode( $item ) {
	$shortcodes = array( $item->shortcode() );

	$output = '';

	foreach ( $shortcodes as $shortcode ) {
		$output .= "\n" . sprintf(
			'<span class="shortcode"><input %s /></span>',
			wpcf7_format_atts( array(
				'type' => 'text',
				'readonly' => true,
				'value' => $shortcode,
				'class' => 'large-text code selectable',
			) )
		);
	}

	return trim( $output );
}