Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

五月 28, 2022 • 沒有評論 PHP Check Script Execution Time

<?php $check_execution_start = microtime(true); // Running your script here $check_execution_end = microtime(true); $execution_time = ($check_execution_end...

閱讀內文
五月 26, 2022 • 沒有評論 Javascript Plugin Starter Template

Javascript File // plugin.js function GoogleSearchMePlugin(options) { let defaultOptions = { base_url: "https://www.google.com/?q=", keyword: "imnobby",...

閱讀內文
五月 25, 2022 • 沒有評論 PHP Simple HTTP Get Function

function imnobby_simple_http_get($url){ $curl = curl_init(); if (!$curl) { die("Couldn't initialize a cURL handle"); } curl_setopt($curl,...

閱讀內文
五月 25, 2022 • 沒有評論 WordPress Admin Ajax Example Script

// Put in functions.php function imnobby_ajax_get_data(){ // Endpoint: /wp-admin/admin-ajax.php?action=imnobby_ajax_get_data $tmphtml = 'produce some output here';...

閱讀內文
五月 25, 2022 • 沒有評論 Javascript Random Key Generator

function js_random_key_generator(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.length;...

閱讀內文
五月 25, 2022 • 沒有評論 WordPress Standard Add Shortcode Function

function do_imnobby_standard_wp_shortcode($attr){ $tmphtml = ''; $tmphtml .= $attr["showtext"]; return $tmphtml; } add_shortcode( 'imnobby_standard_wp_shortcode', 'do_imnobby_standard_wp_shortcode' );...

閱讀內文