Learndash_Binary_Selector::is_valid_position

Learndash_Binary_Selector::is_valid_position( string $position = '' )

Utility function to check and validate the $postition variable. It should be only ‘left’ or ‘right’.


Description #


Parameters #

$position

(string) (Optional) Should have value 'left' or 'right'.

Default value: ''


Return #

(true) if valid.


Source #

File: includes/admin/class-learndash-admin-binary-selector.php


Changelog #

Changelog
Version Description
2.6.0 Introduced.