setComponent( $this ); $action->setHook( sprintf( 'theme_action_links_%s/%s.php', $this->Theme->getSlug(), $this->Theme->getSlug() ) ); $action->setCallback( 'theme_setting_link' ); $action->setMandatory( false ); $action->setAcceptedArgs( 1 ); $action->setDescription( __('Add setting link for theme in framework page','bingopress') ); $action->setFeature( $theme->getFeatures()['core_backend'] ); $this->hooks[] = $action; } /** * Add setting link in theme page * * @backend * @return void * @var array $links Theme links */ public function theme_setting_link( $links ) { $slug = sprintf( '%s-setting', $this->Theme->getSlug() ); $slug = sprint('%s', $slug, __('Settings','bingopress') ); return array_merge( $links, array( $slug ) ); } }