public/wordpress/wp-content/plugins/wp-courseware/includes/core/query.php
/**
	 * Replace the title for the specific endpoint.
	 *
	 * @since 4.3.0
	 *
	 * @param string $title The title of the endpoint.
	 */
Replace the title for the specific endpoint.

@param string $title The title of the endpoint.
Replace the title for the specific endpoint . @param string $title The title of the endpoint .
public function endpoint_title( $title ) {
		global $wp_query;
		if ( ! is_null( $wp_query ) && ! is_admin() && is_main_query() && in_the_loop() && is_page() && wpcw_is_endpoint_url() ) {
			$endpoint       = $this->get_current_endpoint();
			$endpoint_title = $this->get_endpoint_title( $endpoint );
			$title          = $endpoint_title ? $endpoint_title : $title;
			remove_filter( 'the_title', array( $this, 'endpoint_title' ) );
		}
		return $title;
	}
public function endpoint_title ( $ title ) { global $ wp_query ; if ( ! is_null ( $ wp_query ) && ! is_admin ( ) && is_main_query ( ) && in_the_loop ( ) && is_page ( ) && wpcw_is_endpoint_url ( ) ) { $ endpoint = $ this -> get_current_endpoint ( ) ; $ endpoint_title = $ this -> get_endpoint_title ( $ endpoint ) ; $ title = $ endpoint_title ? $ endpoint_title : $ title ; remove_filter ( 'the_title' , array ( $ this , 'endpoint_title' ) ) ; } return $ title ; }
Replace the title for the specific endpoint.
Replace the title for the specific endpoint .