### Functions

## pwt_admin

    pwt_admin()

Declare admin pages

## pwt_admin_init

    pwt_admin_init()

Admin init actions

## pwt_download()

    pwt_download()

## Download error page

    pwt_download_404_template()

## pwt_install

    pwt_install()

Create the database tables, upload folders and configuration values

version | 1.0
since | 1.0
global | Object $wpdb WP Object to interact with database

## pwt_media_handle_upload

    pwt_media_handle_upload(string $file_id, int $post_id, array $post_data, array $overrides) : string

This handles the file upload to download in a payment button

since | 1.0
uses | return the current time in mysql format
uses | Upload the attachment

### Parameters

#### $file_id

`string`

Index into the {@link $_FILES} array of the upload

#### $post_id

`int`

The post ID the media is associated with

#### $post_data

`array`

allows you to overwrite some of the attachment

#### $overrides

`array`

allows you to override the {@link wp_handle_upload()} behavior

### Exceptions

`\WP_Error` | if the file couldn't be upload

### Returns

`string`the pathinfo of the attachment

## pwt_plugin_init

    pwt_plugin_init()

Register plugin actions

## pwt_shortcode_func()

    pwt_shortcode_func(Array $atts) : string

Support to WordPress shortcode for payment buttons [pwt id="value"]

version | 1.0
since | 1.0
global | Object $wpdb WP Object to interact with database

### Parameters

#### $atts

`Array`

array("id" => Button Id)

### Returns

`string`Payment button HTML

## pwt_show_media_upload

    pwt_show_media_upload()

uses | Check if the user have perms to upload files
uses | Print the error page if the user can't upload files
uses | Add the function pwt_upload_dir
uses | init media_upload_type
deprecated | since version 0.9

## Configure the folder to upload the downloabled files.

    pwt_upload_dir() : array

### Returns

`array`

## Conifgure the folder to upload the images files.

    pwt_upload_dir_image() : array

### Returns

`array`

## pwt_widgets_init

    pwt_widgets_init()

Register the Pwt_Widget to use in WordPress Sidebars

version | 1.0
since | 1.0

## pwt_wp_enqueue_scripts

    pwt_wp_enqueue_scripts()

Enqueue plugin style-file

### Classes and interfaces

# OAuthConsumer¶

« More »

# OAuthDataStore¶

« More »

# OAuthException¶

« More »

# OAuthRequest¶

« More »

# OAuthServer¶

« More »

# OAuthSignatureMethod¶

A class for implementing a Signature Method See section 9 ("Signing Requests") in the spec

« More »

# OAuthSignatureMethod_HMAC_SHA1¶

The HMAC-SHA1 signature method uses the HMAC-SHA1 signature algorithm as defined in [RFC2104] where the Signature Base String is the text and the key is the concatenated values (each first encoded per Parameter Encoding) of the Consumer Secret and Token Secret, separated by an '&' character (ASCII code 38) even if empty.

« More »

# OAuthSignatureMethod_PLAINTEXT¶

The PLAINTEXT method does not provide any security protection and SHOULD only be used over a secure channel such as HTTPS.

« More »

# OAuthSignatureMethod_RSA_SHA1¶

The RSA-SHA1 signature method uses the RSASSA-PKCS1-v1_5 signature algorithm as defined in [RFC3447] section 8.2 (more simply known as PKCS#1), using SHA-1 as the hash function for EMSA-PKCS1-v1_5.

« More »

# OAuthToken¶

« More »

# OAuthUtil¶

« More »

# Pwt_Widget¶

Pwt_Widget

« More »

# TwitterOAuth¶

Twitter OAuth class

« More »

### Constants

## PWT_PLUGIN

    PWT_PLUGIN

## PWT_PLUGIN_PATH

    PWT_PLUGIN_PATH

## PWT_PLUGIN_POSITION

    PWT_PLUGIN_POSITION

## PWT_PLUGIN_UPLOAD_DIR

    PWT_PLUGIN_UPLOAD_DIR

## PWT_PLUGIN_UPLOAD_URL

    PWT_PLUGIN_UPLOAD_URL

## PWT_PLUGIN_URL

    PWT_PLUGIN_URL

## PWT_PLUGIN_VERSION

    PWT_PLUGIN_VERSION

## WP_USE_THEMES

    WP_USE_THEMES