Step 1: Visit Dashboard > Choose Server > Security
Add New Rule
Globally Open Port, port 2040 (or your port)
Protocal: TCP
<?php | |
/** Drafting **/ | |
add_filter('the_content', 'codetot_lazyload_home_sections', 1000); | |
function codetot_lazyload_home_sections( $content ) { | |
$front_page_id = get_option('page_on_front'); | |
if ( ! is_page( $front_page_id ) ) { | |
return $content; | |
} | |
<?php | |
function get_yoast_seo_category_meta_title( $object_id) { | |
global $wpdb; | |
$table_name = $wpdb->prefix . 'yoast_indexable'; | |
$result = $wpdb->get_row( $wpdb->prepare("SELECT title FROM $table_name WHERE `object_id` = '%s' AND `object_sub_type` = 'category';", $object_id), ARRAY_A ); | |
return $result['title'] ?? 'None'; |
# For Apache, Litespeed | |
<Files ~ "\.(pdf|doc|docx|xls|xlsx|ppt|pptx)$"> | |
Header set X-Robots-Tag "noindex, nofollow" | |
</Files> |
<?php | |
/** | |
* WP PHP Coding Standards | |
* | |
* @package CodingStandards | |
* @author codetot | |
**/ | |
// To start a new PHP file, append phpDocs | |
/** |
<?php | |
/** Sample escape output for WordPress theme | |
* @author codetot | |
* @package codeStandard | |
**/ | |
?> | |
<?php // Simple escape html // ?> | |
<h2 class="product-card__title"><?php echo esc_html( $title ); ?></h2> |
<?php | |
add_filter('rank_math/json_ld', 'codetot_product_rich_snippet_schema', 100); | |
/** | |
* Fix RankMath missing `AggregateRating` on product category schema | |
* | |
* @author codetot | |
*/ | |
function codetot_product_rich_snippet_schema( $data ) { |
Dưới đây là một số mẫu câu hỏi mà Code Tốt đặt ra với ứng viên. Chúng tôi hi vọng dù bạn biết đó là câu hỏi trong buổi phỏng vấn, thì việc đọc những nội dung này cũng sẽ giúp ích cho kiến thức bạn cần tìm hiểu và thực hành. Càng tìm hiểu và làm sát vấn đề chúng tôi nêu ra, bạn càng có cơ hội tiếp cận sâu hơn với mảng lập trình web.
Phần lớn ứng viên đạt tỷ lệ từ 75% trở lên sẽ được gia nhập đội ngũ của chúng tôi.
Nếu bạn đã sẵn sàng, hãy liên hệ với bộ phận Tuyển dụng của Code Tốt nhé.
<?php | |
/** | |
* Fix missing review on product schema (Rank Math) | |
* | |
* @author codetot | |
**/ | |
function codetot_update_missing_product_schema( $entity ) { | |
$stampedDBData = get_post_meta(get_queried_object_id(), 'stamped_io_product_reviews_new', true); |
# With php XDEBUG on or off | |
tooling: | |
xdebug-on: # run: lando xdebug-on | |
service: appserver | |
description: Enable xdebug for apache. | |
cmd: "docker-php-ext-enable xdebug && /etc/init.d/apache2 reload" | |
user: root | |
xdebug-off: # run: lando xdebug-off | |
service: appserver | |
description: Disable xdebug for apache. |