BP_Group_Extension::has_submit_button( string $screen = '' )
Does the given markup have a submit button?
Description Description
Parameters Parameters
- $screen
-
(Optional) The markup to check.
Default value: ''
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] ); }
Changelog Changelog
Version | Description |
---|---|
1.8.0 | Introduced. |