Unserialize PHP value only if it was serialized
If its necessary to check is string we got is serialized array and unserialize it if its true
If its necessary to check is string we got is serialized array and unserialize it if its true
If its necessary, for example in any PHP loop (foreach) using any defined logic call specialized function with arguments by that logic – next code will do it:
1 | $json = call_user_func_array('json_encode', $args); |
global $wpdb; $wp_tables = $wpdb->tables(); Returns an array of WordPress tables.
If its necessary to stop execution of PHP process in WordPress and show to the user any message with the reason of it, next function will do it:
1 | function wp_die($message = '', $title = '', $args = array()) |
Apache .htaccess script for access restrictions
to move:
1 | jQuery("#NodesToMove").detach().appendTo('#DestinationContainerNode'); |
to copy:
1 | jQuery("#NodesToMove").appendTo('#DestinationContainerNode'); |
How to make parsing of link query by PHP
How to remove text nodes only from any tag container
Get from JavaScript array unique values only