multilanguage
1 year ago
colibri.php
2 years ago
contact-form.php
2 years ago
entity.php
4 years ago
get-body-class.php
4 years ago
get-classic-page-template.php
4 years ago
get-page-query.php
4 years ago
get-page-title.php
4 years ago
get-post-content.php
4 years ago
get-post-styles.php
4 years ago
index.php
1 year ago
kubio-cloud.php
2 years ago
page-templates.php
4 years ago
save-template-parts-filter.php
2 years ago
subscribe-form.php
4 years ago
typekit.php
4 years ago
update-settings-flags.php
1 year ago
get-page-title.php
18 lines
| 1 | <?php |
| 2 | |
| 3 | use Kubio\Blocks\PageTitleBlock; |
| 4 | use Kubio\Core\Utils; |
| 5 | use IlluminateAgnostic\Arr\Support\Arr; |
| 6 | |
| 7 | add_action( |
| 8 | 'template_redirect', |
| 9 | function () { |
| 10 | if ( Arr::has( $_REQUEST, '__kubio-page-title' ) && Utils::canEdit() ) { |
| 11 | return wp_send_json_success( |
| 12 | PageTitleBlock::getTitle( true ) |
| 13 | ); |
| 14 | } |
| 15 | }, |
| 16 | PHP_INT_MAX |
| 17 | ); |
| 18 |