BP_Group_Extension::has_submit_button( string $screen = '' )
Does the given markup have a submit button?
Description
Parameters
- $screen
-
(Optional) The markup to check.
Default value: ''
Return
(bool) True if a Submit button is found, otherwise false.
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] );
}
Changelog
| Version | Description |
|---|---|
| BuddyPress 1.8.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.