public function register()
    {
        if (! $this->is('registered')) {
            call_user_func("wp_register_{$this->getType()}",
                $this->getSlug(),
                $this->getPath(),
                $this->getArgument('dependences'),
                $this->getArgument('version'),
                ($this->getPlacement() === 'footer') ? true : false
            );

            $this->localizeAsset();
        }

        return $this;
    }
public function register()
    {
        if (! $this->is('registered')) {
            call_user_func("wp_register_{$this->getType()}",
                $this->getSlug(),
                $this->getPath(),
                $this->getArgument('dependences'),
                $this->getArgument('version'),
                ($this->getPlacement() === 'footer') ? true : false
            );

            $this->localizeAsset();
        }

        return $this;
    }
public function register ( ) { if ( ! $ this -> is ( 'registered' ) ) { call_user_func ( "wp_register_{$this->getType()}" , $ this -> getSlug ( ) , $ this -> getPath ( ) , $ this -> getArgument ( 'dependences' ) , $ this -> getArgument ( 'version' ) , ( $ this -> getPlacement ( ) === 'footer' ) ? true : false ) ; $ this -> localizeAsset ( ) ; } return $ this ; }
Register asset.

@return self
Register asset .