BP_Group_Extension::has_submit_button( string $screen = '' )

Does the given markup have a submit button?


Parameters Parameters

$screen

(string) (Optional) The markup to check.

Default value: ''


Top ↑

Return Return

(bool) True if a Submit button is found, otherwise false.


Source Source

File: bp-groups/classes/class-bp-group-extension.php

	public static function has_submit_button( $screen = '' ) {
		$pattern = "/<input[^>]+type=[\'\"]submit[\'\"]/";
		preg_match( $pattern, $screen, $matches );
		return ! empty( $matches[0] );
	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.8.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.