Programatically change a view title

Public

</> CopyGet raw version
php
  1. $view = views_get_view('[VIEW_NAME]');
  2. $view->set_display('[DISPLAY_ID]');
  3. $view->display_handler->set_option('title', '[NEW_TITLE]');
  4. $view->save();