Skip to content

Instantly share code, notes, and snippets.

{
"meta": {
"code": 200,
"message": "success",
"type": "endpoints"
},
"body": [
{
"id": 10505,
"orgId": 2,
[38] => Array
(
[departmentId] => 38
[departmentTitle] => Customer Support
[priority] => Array
(
[Gold] => 4
[Platinum] => 0
[Diamond] => 0
)
@nikhilvijayanv
nikhilvijayanv / file.php
Created May 27, 2018 12:57
Wordpress Theme customization #wp
<?php
function wporg_disable_slider()
{
// make sure all parameters match the add_action() call exactly
remove_action('template_redirect', 'my_theme_setup_slider', 9);
}
// make sure we call remove_action() after add_action() has been called
add_action('after_setup_theme', 'wporg_disable_slider');
@nikhilvijayanv
nikhilvijayanv / generateRandomString.php
Last active August 29, 2015 14:07 — forked from kosinix/generateRandomString.php
generate random string php
function generateRandomString($length = 12) {
$characters = '23456789abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ!@#$%^&*()_-';
$randomString = '';
for ($i = 0; $i < $length; $i++) {
$randomString .= $characters[rand(0, strlen($characters) - 1)];
}
return $randomString;
}