\lloc\MslsMslsCustomFilter

Adding custom filter to posts/pages table.

Summary

Methods
Properties
Constants
__construct()
init()
debugger()
get_input_array()
is_autosave()
verify_nonce()
delete()
add_filter()
execute_filter()
No public properties found
No constants found
get_input_value()
save()
$options
$collection
N/A
No private methods found
No private properties found
N/A

Properties

Methods

debugger()

debugger(mixed  $message) 

Prints a message in the error log if WP_DEBUG is true

Parameters

mixed $message

get_input_array()

get_input_array(integer  $object_id) : array

Get the input array

Parameters

integer $object_id

Returns

array

is_autosave()

is_autosave(integer  $post_id) : boolean

Checks if the current input comes from the autosave-functionality

Parameters

integer $post_id

Returns

boolean

verify_nonce()

verify_nonce() : boolean

Checks for the nonce in the INPUT_POST

Returns

boolean

delete()

delete(integer  $object_id) 

Delete

Parameters

integer $object_id

add_filter()

add_filter() 

Echo's select tag with list of blogs

execute_filter()

execute_filter(\WP_Query  $query) : boolean|\WP_Query

Executes filter, excludes translated posts from WP_Query

Parameters

\WP_Query $query

Returns

boolean|\WP_Query

get_input_value()

get_input_value(  $key,   $value) : array

Prepare input key/value-pair

Parameters

$key
$value

Returns

array

save()

save(integer  $object_id, string  $class) 

Save

Parameters

integer $object_id
string $class