如何將 WordPress 網站域名從 www 變更為 www2 如你需要將網站原有的域名從 www.yourdomain.com 換成 www2.yourdomain.com,本文將以簡易步驟介紹從修改 WordPress 設定、調整 DNS 及伺服器設定,到資料庫中搜尋替換、導向設定及清除快取的完整流程。…
閱讀內文
如何將 WordPress 網站域名從 www 變更為 www2 如你需要將網站原有的域名從 www.yourdomain.com 換成 www2.yourdomain.com,本文將以簡易步驟介紹從修改 WordPress 設定、調整 DNS 及伺服器設定,到資料庫中搜尋替換、導向設定及清除快取的完整流程。…
閱讀內文
網站 Pingback 審核與 SEO 實用指南 在網站管理中,Pingback 是一項重要功能,用來通知您有其他網站連結到您的內容。系統會在部份情況下顯示類似「New pingback awaiting…
閱讀內文Ensuring your WordPress site is secure is crucial, especially when it comes to the JSON...
閱讀內文function imnobby_regenerate_thumbnail_by_attachment_id($image_id=""){ if ( empty($image_id) ){ exit; } ...
閱讀內文[{{site_name}}] New User Registration (Admin Email) Hook: wp_new_user_notification_email_admin New user registration on your site {{site_name}}: Username:...
閱讀內文<?php // functions.php function do_wp_query_via_ajax(){ //ini_set('display_errors', 1); //ini_set('display_startup_errors', 1); //error_reporting(E_ALL); // Endpoint: /wp-admin/admin-ajax.php?action=do_wp_query_via_ajax…
閱讀內文<?php // functions.php function imnobby_check_user_roles(){ $user_id = get_current_user_id(); $user_info = get_userdata( $user_id ); //$user_roles =...
閱讀內文<?php // functions.php function imnobby_get_users_with_role($role){ $args = array( 'role' => $role, ); $users = get_users(...
閱讀內文// RESET WP_HOME BY SQL COMMAND update wp_options set option_value='https://www.imnobby.com' where option_name='home'; update wp_options set...
閱讀內文<?php $date_after = strtotime("-1 day"); $date_after = strtotime("-1 week"); $date_after = strtotime("-2 weeks"); $date_after =...
閱讀內文When you see any of these file names in the list below in your server,...
閱讀內文<?php function do_stage($attr){ $tmphtml = ''; // $tmphtml .= $attr["id"]; $tmphtml .= '<!-- html2canvas.js Library...
閱讀內文<?php function ajax_get_remote_image(){ // Endpoint: /wp-admin/admin-ajax.php?action=ajax_get_remote_image&q= $tmphtml = ''; if ( !isset($_GET["q"]) ) exit; $url...
閱讀內文<?php function imnobby_redirect_attachment_page() { if ( is_attachment() ) { global $post; if ( $post &&...
閱讀內文function limit_user_file_upload_size( $size ) { // Set the upload size limit to 10 MB for...
閱讀內文<?php // WordPress $items_per_page = 10; $page = isset( $_GET['cpage'] ) ? abs( (int) $_GET['cpage']...
閱讀內文function imnobby_transient_ajx_response_demo(){ $transient_name = "my_query_cache"; // Display Transient Data Directly If Available if ( !(false...
閱讀內文WordPress wp_remote_get and wp_remote_post Standard Template
閱讀內文MySQL Database and MariaDB in CentOS and Ubuntu may crash and stop service when the...
閱讀內文function acf_load_field_message($field ) { $screen = get_current_screen(); if ($screen->post_type !== "acf-field-group") { $field['message'] = do_shortcode($field['message']);...
閱讀內文