WpvShortcodeOverrides

class WpvShortcodeOverrides

Methods

add filters

filters() 
static

header_layout

header_layout($layout) 
static

Arguments

$layout

wp_title

wp_title($title) 
static

Arguments

$title

enable any shortcodes in CF7

shortcodes_in_cf7(string $form) : string
static

Arguments

$form

string

original html

Response

string

parsed with do_shortcode

Show a splash screen on some pages

wpv_splash_screen() 
static

Remove unnecessary menu item classes

nav_menu_css_class(array $classes, object $item, object $args) : array
static

Arguments

$classes

array

current menu item classes

$item

object

menu item

$args

object

menu item args

Response

array

filtered classes

Wrap oEmbeds in .wpv-video-frame

oembed_dataparse(string $output, object $data, string $url) : string
static

Arguments

$output

string

original oembed output

$data

object

data from the oEmbed provider

$url

string

original embed url

Response

string

$output wrapped in additional html

Returns the HTML for the column titles, based on their type

column_title(string $title, string $type) : string
static

Arguments

$title

string

title text

$type

string

title type

Response

string

column title html

Implements .swf oEmbeds

embed_handler_swf(array $matches, array $attr, string $url, array $rawattr) : string
static

Arguments

$matches

array

preg_match matches

$attr

array

embed attributes

$url

string

embed url

$rawattr

array

raw attributes

Response

string

output html

Correct image size for the multiwidget images

posts_widget_img_size(int $img_size, array $args) : int
static

Arguments

$img_size

int

original image size

$args

array

widget arguments

Response

int

image size

Correct thumbnail name for the multiwidget images

posts_widget_thumbnail_name(string $img_size, array $args) : string
static

Arguments

$img_size

string

original thumbnail

$args

array

widget arguments

Response

string

thumbnail name

Sets the excerpt length

excerpt_length(int $length) : int
static

Arguments

$length

int

original length

Response

int

excerpt length

Sets the excerpt ending

excerpt_more(string $more) : string
static

Arguments

$more

string

original ending

Response

string

excerpt ending

Add the tabbed widget icons

multiwidget_tab_title(string $title, string $slug, string $single) : string
static

Arguments

$title

string

current tab title

$slug

string

current tab slug

$single

string

if this is the only tab shown

Response

string

current tab title with icon

Show the tab title if only one tab is to be displayed

multiwidget_single_title(string $only, string $title) 
static

Arguments

$only

string

tab slug

$title

string

tab title