WPCF7_List_Table::column_title │ public │ CF7 1.0

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

Хуков нет.

Возвращает

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

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

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

Код WPCF7_List_Table::column_title() CF7 6.2.4.1

public function column_title( $item ) {
	$formatter = new WPCF7_HTMLFormatter();

	$formatter->append_start_tag( 'strong' );

	$edit_link = add_query_arg(
		array(
			'post' => absint( $item->id() ),
			'action' => 'edit',
		),
		menu_page_url( 'wpcf7', false )
	);

	$formatter->append_start_tag( 'a', array(
		'class' => 'row-title',
		'href' => esc_url( $edit_link ),
		'aria-label' => sprintf(
			/* translators: %s: title of contact form */
			__( 'Edit “%s”', 'contact-form-7' ),
			$item->title()
		),
	) );

	$formatter->append_preformatted( esc_html( $item->title() ) );

	$formatter->end_tag( 'strong' );

	$post_type_obj = get_post_type_object( WPCF7_ContactForm::post_type );

	if ( $item->is_true( 'subscribers_only' ) ) {
		$formatter->append_start_tag( 'span', array(
			'class' => 'tag info',
		) );

		$formatter->append_preformatted(
			esc_html( __( 'subscribers only', 'contact-form-7' ) )
		);

		$formatter->end_tag( 'span' );
	}

	if ( $item->is_true( 'demo_mode' ) ) {
		$formatter->append_start_tag( 'span', array(
			'class' => 'tag info',
		) );

		$formatter->append_preformatted(
			esc_html( __( 'demo mode', 'contact-form-7' ) )
		);

		$formatter->end_tag( 'span' );
	}

	if ( $item->is_true( 'skip_mail' ) ) {
		$formatter->append_start_tag( 'span', array(
			'class' => 'tag info',
		) );

		$formatter->append_preformatted(
			esc_html( __( 'skip mail', 'contact-form-7' ) )
		);

		$formatter->end_tag( 'span' );
	}

	if ( $item->is_true( 'do_not_store' ) ) {
		$formatter->append_start_tag( 'span', array(
			'class' => 'tag info',
		) );

		$formatter->append_preformatted(
			esc_html( __( 'do not store', 'contact-form-7' ) )
		);

		$formatter->end_tag( 'span' );
	}

	if (
		wpcf7_validate_configuration() and
		current_user_can( $post_type_obj->cap->edit_post, $item->id() )
	) {
		$config_validator = new WPCF7_ConfigValidator( $item );
		$config_validator->restore();

		if ( $count_errors = $config_validator->count_errors() ) {
			$formatter->append_start_tag( 'span', array(
				'class' => 'tag warning',
			) );

			$formatter->append_preformatted(
				esc_html( __( 'has config errors', 'contact-form-7' ) )
			);

			$formatter->end_tag( 'span' );
		}
	}

	$formatter->print();
}