\lloc\MslsMslsPostTagClassic

Post Tag Clasic

Summary

Methods
Properties
Constants
suggest()
init()
add_input()
edit_input()
the_input()
set()
maybe_set_linked_term()
__construct()
debugger()
get_input_array()
is_autosave()
verify_nonce()
delete()
print_option()
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

suggest()

suggest() 

Suggest

Echo a JSON-ified array of posts of the given post-type and the requested search-term and then die silently

init()

init() : static

Factory

Returns

static

add_input()

add_input(\StdClass  $tag) 

Add the input fields to the add-screen of the taxonomies

Parameters

\StdClass $tag

edit_input()

edit_input(\StdClass  $tag) 

Add the input fields to the edit-screen of the taxonomies

Parameters

\StdClass $tag

the_input()

the_input(\StdClass  $tag, string  $title_format, string  $item_format) : boolean

Print the input fields Returns true if the blogcollection is not empty

Parameters

\StdClass $tag
string $title_format
string $item_format

Returns

boolean

set()

set(integer  $term_id) 

Set calls the save method if taxonomy is set

Parameters

integer $term_id

maybe_set_linked_term()

maybe_set_linked_term(\lloc\Msls\MslsOptionsTax  $mydata) : \lloc\Msls\MslsOptionsTax

Sets the selected element in the data from the `$_GET` superglobal, if any.

Parameters

\lloc\Msls\MslsOptionsTax $mydata

Returns

\lloc\Msls\MslsOptionsTax

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

print_option()

print_option(\lloc\Msls\MslsBlog  $blog, string  $type, \lloc\Msls\MslsOptionsTax  $mydata, string  $item_format) 

Prints options inputs

Parameters

\lloc\Msls\MslsBlog $blog
string $type
\lloc\Msls\MslsOptionsTax $mydata
string $item_format

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