-
WordPress Save and Retrieve Transient Content In Database
function imnobby_transient_ajx_response_demo(){ $transient_name = "my_query_cache"; // Display Transie…
閱讀全文 → -
PHP Check Script Execution Time
<?php $check_execution_start = microtime(true); // Running your script here $check_execution_end =…
閱讀全文 → -
WordPress wp_remote_get and wp_remote_post Standard Template
WordPress wp_remote_get and wp_remote_post Standard Template
閱讀全文 → -
Common Elements and Features in Blogs, Online Magazines and News Website
Must-have Elements and Features Banner / Carousel for Home Page / Category Page Social Media Links Article Sh…
閱讀全文 → -
Auto Restart MySQL Database from Crash with Crontab (CentOS)
MySQL Database and MariaDB in CentOS and Ubuntu may crash and stop service when the server is out of memory re…
閱讀全文 → -
WordPress ACF Use Shortcode in Message Field
function acf_load_field_message($field ) { $screen = get_current_screen(); if ($screen->post_type !== "…
閱讀全文 → -
Comment on YITH Amazon S3 Storage for WooCommerce Premium
Related Keywords: Developer, How-to, Solved, YITH Amazon S3 Storage Version 1.1.13, Not Recommended&hel…
閱讀全文 → -
[SOLVED] An FTP error occurred, cannot make connection to host (Plesk, AWS Lightsail)
Solution Cause: The passive port range (by default, 49152-65535) is not properly configured In Amazon Lightsa…
閱讀全文 → -
Javascript Plugin Starter Template
Javascript File // plugin.js function GoogleSearchMePlugin(options) { let defaultOptions = { base_url…
閱讀全文 → -
PHP file_get_contents SSL Operation Failed Debug
PHP Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL…
閱讀全文 → -
PHP Simple HTTP Get Function
function imnobby_simple_http_get($url){ $curl = curl_init(); if (!$curl) { die("Couldn't initialize a …
閱讀全文 → -
WordPress Admin Ajax Example Script
// Put in functions.php function imnobby_ajax_get_data(){ // Endpoint: /wp-admin/admin-ajax.php?action…
閱讀全文 → -
PHP Explode Get String Between Two Variables
function imnobby_custom_explode($from_1, $from_2, $output){ $value_1 = explode($from_1, $output); $valu…
閱讀全文 → -
Append and Load Third-Party Javascript to HTML with Javascript
var scripts = document.getElementById("data").querySelectorAll("script"); for (var i = 0; i < scripts.le…
閱讀全文 → -
PHP Protect Page with Key
<?php $get_key = isset($_GET['key']) ? $_GET['key'] : ''; $key = "qfNW6T5Ivr"; if ( $get_key <&…
閱讀全文 → -
Javascript Random Key Generator
function js_random_key_generator(length) { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZab…
閱讀全文 → -
WordPress Standard Add Shortcode Function
function do_imnobby_standard_wp_shortcode($attr){ $tmphtml = ''; $tmphtml .= $attr["showtext"]; …
閱讀全文 → -
PHP Function for Minifying HTML
function imnobby_minify_html($code) { $search = array( // Remove whitespaces after tags '/\>[^\S ]…
閱讀全文 → -
WordPress Filter: Append to Content
function imnobby_append_to_content( $content ) { $tmphtml = ""; if ( get_field('keywords') ){ $tmp…
閱讀全文 → -
Bootstrap 5 Blank Starter Template V1.0
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="v…
閱讀全文 →