Tribe__Events__Pro__Editor__Meta::split_series_link( $url, $post_id )
Redirect to classic editor if the event does not have any block on it
Contents
Parameters
- $url
-
(Required)
- $post_id
-
(Required)
Return
(mixed)
Source
File: src/Tribe/Editor/Meta.php
public function split_series_link( $url, $post_id ) {
$args = array();
if ( ! has_blocks( absint( $post_id ) ) ) {
$args = array( 'classic-editor' => '' );
}
return add_query_arg( $args, $url );
}
Changelog
| Version | Description |
|---|---|
| 4.5 | Introduced. |