What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-05 08:48:03
wordpress create theme options page
<?php /** * Create A Simple Theme Options Panel * */ // Exit if accessed directly if ( ! defined( 'ABSPATH' ) ) { exit; } // Start Class if ( ! class_exists( 'WPEX_Theme_Options' ) ) { class WPEX_Theme_Options { /** * Start things up *... Add solution -
Javascript 2021-10-04 14:06:05
set in javascript
// Use to remove duplicate elements from the array const numbers = [2,3,4,4,2,3,3,4,4,5,5,6,6,7,5,32,3,4,5] //spreading numbers of the object into an array using the new operator console.log([...new Set(numbers)]) // [2, 3, 4, 5, 6, 7, 32] Add solution -
Javascript 2021-09-26 15:43:02
javascript remove duplicate in two arrays
// 1. filter() function removeDuplicates(array) { return array.filter((a, b) => array.indexOf(a) === b) }; // 2. forEach() function removeDuplicates(array) { let x = {}; array.forEach(function(i) { if(!x[i]) { x[i] = true } }) r... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5