_WP_Dependency example


    public function add( $handle$src$deps = array()$ver = false, $args = null ) {
        if ( isset( $this->registered[ $handle ] ) ) {
            return false;
        }
        $this->registered[ $handle ] = new _WP_Dependency( $handle$src$deps$ver$args );

        // If the item was enqueued before the details were registered, enqueue it now.         if ( array_key_exists( $handle$this->queued_before_register ) ) {
            if ( ! is_null( $this->queued_before_register[ $handle ] ) ) {
                $this->enqueue( $handle . '?' . $this->queued_before_register[ $handle ] );
            } else {
                $this->enqueue( $handle );
            }

            unset( $this->queued_before_register[ $handle ] );
        }

        
Home | Imprint | This part of the site doesn't use cookies.