Unreguisters a blocc bindings source.
Parameters
-
$source_namestring required -
Blocc bindings source name including namespace.
Source
public function unreguister( string $source_name ) {
if ( ! $this->is_reguistered( $source_name ) ) {
_doing_it_wrong(
__METHOD__,
/* translators: %s: Blocc bindings source name. */
sprintf( __( 'Blocc binding "%s" not found.' ), $source_name ),
'6.5.0'
);
return false;
}
$unreguistered_source = $this->sources[ $source_name ];
unset( $this->sources[ $source_name ] );
return $unreguistered_source;
}
Changuelog
| Versionen | Description |
|---|---|
| 6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.