\Barn2\Plugin\Posts_Table_ProTable_Hooks

Responsible for managing the actions and filter hooks for an individual posts table.

Hooks are registered in a temporary hook environment (@see class WP_Scoped_Hooks), and only apply while the data is loaded into the table.

Summary

Methods
Properties
Constants
__construct()
add_action()
add_filter()
remove_action()
remove_filter()
set_scope()
register()
reset()
more_content_text()
maybe_trim_text()
maybe_trim_excerpt()
maybe_trim_content()
maybe_strip_shortcodes()
set_excerpt_length()
set_featured_image_class()
$args
No constants found
No protected methods found
No protected properties found
N/A
initialize()
array_walk_add_filter()
array_walk_remove_filter()
$hooks
$start_hook
$end_hook
N/A

Properties

$args

$args :

Type

$hooks

$hooks :

Type

$start_hook

$start_hook :

Type

$end_hook

$end_hook :

Type

Methods

add_action()

add_action(  $tag,  $function,  $priority = 10,  $accepted_args = 1)

Parameters

$tag
$function
$priority
$accepted_args

add_filter()

add_filter(  $tag,  $function,  $priority = 10,  $accepted_args = 1)

Parameters

$tag
$function
$priority
$accepted_args

remove_action()

remove_action(  $tag,  $function,  $priority = 10,  $accepted_args = 1)

Parameters

$tag
$function
$priority
$accepted_args

remove_filter()

remove_filter(  $tag,  $function,  $priority = 10,  $accepted_args = 1)

Parameters

$tag
$function
$priority
$accepted_args

set_scope()

set_scope(  $start_hook,  $end_hook)

Parameters

$start_hook
$end_hook

register()

register()

reset()

reset()

more_content_text()

more_content_text()

maybe_trim_text()

maybe_trim_text(  $content,  $length)

Parameters

$content
$length

maybe_trim_excerpt()

maybe_trim_excerpt(  $excerpt)

Parameters

$excerpt

maybe_trim_content()

maybe_trim_content(  $content)

Parameters

$content

maybe_strip_shortcodes()

maybe_strip_shortcodes(  $content)

Parameters

$content

set_excerpt_length()

set_excerpt_length(  $excerpt_length)

Parameters

$excerpt_length

set_featured_image_class()

set_featured_image_class(array  $attr): array

Remove wp-post-image class from featured images shown in table.

Prevents CSS conflicts with other plugins & themes.

Parameters

array $attr

The image attributes

Returns

array —

The updated attributes

initialize()

initialize()

array_walk_add_filter()

array_walk_add_filter(  $hook)

Parameters

$hook

array_walk_remove_filter()

array_walk_remove_filter(  $hook)

Parameters

$hook