科技美学

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

随笔分类 -  Wordpress

摘要:1.0 前言 把Wordpress遷移到Wordpress Multi Sites的子域名,因此“All-in-One WP Migration and Backup”就需要付費VIP才支持遷移子域名。但用手動方法也可以實現遷移到子域名。 延伸文章: Wordpress主題文章 wordpress更 阅读全文
posted @ 2024-08-23 15:13 chankuang 阅读(2) 评论(0) 推荐(0) 编辑

摘要:1.0 WP User [GET] http://127.0.0.1/wordpress.002/wp-json/wp/v2/usersreturn: (array) user [GET] http://127.0.0.1/wordpress.002/wp-json/wp/v2/users/1ret 阅读全文
posted @ 2023-11-15 15:26 chankuang 阅读(26) 评论(0) 推荐(0) 编辑

摘要:1.0 Why does it not work? DELETE | http://127.0.0.1/wordpress.002/wp-json/wp/v2/smokes/20 { "code": "rest_cannot_delete", "message": "Sorry, you are n 阅读全文
posted @ 2023-10-25 16:59 chankuang 阅读(42) 评论(0) 推荐(0) 编辑

摘要:官网: https://wppb.me/Github: https://github.com/DevinVinson/WordPress-Plugin-Boilerplate Folder Subfolder / File Description 1. root algo-trade.php 加载插 阅读全文
posted @ 2022-08-03 13:17 chankuang 阅读(51) 评论(0) 推荐(0) 编辑

摘要:taxonomy不置顶。 1. change source code $checked_ontop = (array_key_exists('checked_ontop', $parsed_args)) ? esc_attr( $parsed_args['checked_ontop'] ) : tr 阅读全文
posted @ 2022-08-03 11:35 chankuang 阅读(23) 评论(0) 推荐(0) 编辑

摘要:1. Change source code <div class="wp-list-table-container" style="overflow-x:auto;"> <table class="wp-list-table <?php echo implode( ' ', $this->get_t 阅读全文
posted @ 2022-08-03 11:08 chankuang 阅读(58) 评论(0) 推荐(0) 编辑

摘要:由於Wordpress visual composer是用cache里的domain config params,所以會出現不更新的問題。 1. Visual composer source code $uploadDir = wp_upload_dir(null, true, true); wp- 阅读全文
posted @ 2022-07-15 14:23 chankuang 阅读(16) 评论(0) 推荐(0) 编辑

摘要:1.0 database connection define( 'DB_NAME', 'db_table' ); define( 'DB_USER', 'db_name' ); define( 'DB_PASSWORD', 'db_password' ); define( 'DB_HOST', 'd 阅读全文
posted @ 2022-06-10 16:35 chankuang 阅读(59) 评论(0) 推荐(0) 编辑

摘要:wordpress meta_query處理小數位時,會出現問題。官方提出的解決方法,是使用DECIMAL(10,3)來做值類型。 array('key' => 'wpsc_price_sell', 'value' => array((float)$priceFrom, (float)$priceT 阅读全文
posted @ 2022-06-10 10:39 chankuang 阅读(17) 评论(0) 推荐(0) 编辑

摘要:1. wordpress hook in construct() function __construct() { add_filter('post_type_link', [$this, 'custom_nft_permalink'], 1, 3); } 2. rewrite post link 阅读全文
posted @ 2022-06-10 10:23 chankuang 阅读(90) 评论(0) 推荐(0) 编辑

摘要:1. IIS web.config <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <defaultDocument> <files> <clear /> <add value="index.php" 阅读全文
posted @ 2022-06-08 16:57 chankuang 阅读(91) 评论(0) 推荐(0) 编辑