Admin_Menu::modify_report_titles( $admin_title,  $title )


Parameters Parameters

$admin_title

(Required)

$title

(Required)


Top ↑

Return Return

(string)


Source Source

File: src/core/admin/class-admin-menu.php

	public function modify_report_titles( $admin_title, $title ) {
		if ( automator_filter_has_var( 'tab' ) ) {
			switch ( sanitize_text_field( automator_filter_input( 'tab' ) ) ) {
				case 'recipe-log':
					$admin_title = sprintf( '%s — %s', esc_attr__( 'Recipe log', 'uncanny-automator' ), $admin_title );
					break;
				case 'trigger-log':
					$admin_title = sprintf( '%s — %s', esc_attr__( 'Trigger log', 'uncanny-automator' ), $admin_title );
					break;
				case 'action-log':
					$admin_title = sprintf( '%s — %s', esc_attr__( 'Action log', 'uncanny-automator' ), $admin_title );
					break;
			}
		}
		return apply_filters( 'automator_report_titles', $admin_title, $title );
	}