Mail: contact@nexopos.comPhone: +1(424)231-4091

ns-page-title

This filter is used to add flexibility to the page title. By default, the filter should provide a string that has an argument that is used as a placeholder for the actual page title. Here is how the string looks like :

__( '%s — NexoPOS 4' );

This can obviously be changed using the filter "ns-page-title" like that.

<?php
use App\Classes\Hook;
// ...
Hook::filter( 'ns-page-title', function( $pageTitle ) {
return __( '%s &mdash; MyPOS' );
});

Note that these modifications should be performed on the module service provider, especially on the "register" method.