WordPress 3.0? WordPress MU? ?? (?? ??? ?? ??) ? ??? ?? ??? ??? ??? ???? ??? ????? ??????. ??? ?? ??? ???? ??? ?? ??? ??? ??? ?? ?? ?????.
???? (????) ? functions.php :
add_action( 'init', 'create_book_type' ); function create_book_type() { register_post_type( 'books', array( 'labels' => array( 'name' => __( 'Books' ), 'singular_name' => __( 'Book' ) ), 'public' => true, ) ); }<<> : ? ??>
functions.php
? ?????? : ? ??>
// Define paths (adjust as needed) define( 'MY_WORDPRESS_FOLDER', $_SERVER['DOCUMENT_ROOT'] ); define( 'MY_THEME_FOLDER', str_replace("\",'/',dirname(__FILE__)) ); define( 'MY_THEME_PATH', '/' . substr( MY_THEME_FOLDER, stripos(MY_THEME_FOLDER,'wp-content') ) ); add_action('admin_init','book_meta_init'); function book_meta_init() { wp_enqueue_style( 'my_meta_css', MY_THEME_PATH . '/custom/book_panel.css' ); add_meta_box( 'book_meta', 'Book Information', 'book_meta', 'books', 'advanced', 'high' ); } function book_meta() { global $post; $author = get_post_meta($post->ID,'author',TRUE); $isbn = get_post_meta($post->ID,'isbn',TRUE); include(MY_THEME_FOLDER . '/custom/book_information.php'); wp_nonce_field( __FILE__, 'my_meta_noncename' ); } function my_meta_save($post_id) { if (!wp_verify_nonce( $_POST['my_meta_noncename'], __FILE__ )) return $post_id; if (!current_user_can('edit_post', $post_id)) return $post_id; $accepted_fields['books'] = array( 'author', 'isbn' ); $post_type_id = $_POST['post_type']; foreach ($accepted_fields[$post_type_id] as $key) { $custom_field = $_POST[$key]; if (is_null($custom_field)) delete_post_meta($post_id, $key); elseif (isset($custom_field) && !is_null($custom_field)) update_post_meta($post_id,$key,$custom_field); } return $post_id; } add_action('save_post','my_meta_save');.
? ??? WordPress? ??? Custom Write ??? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

WordPress? ?? CPU ??? ??? ???? ?? ???? ???? ??, ???? ? ?????? ??, ?? ??? ?? ?? ?? ??? ??? ?????. 1. ??, ??, HTOP ?? ??? ??? ?? WordPress? ?? ?? ???? ??????. 2. ?? ?? ??? ????? ????? ????? ????? ?? ?? ?? ??? ???? QueryMonitor? ???? ???? ??? ???? ???? ? ????? ????? ??????. 3. ?? ????? ????, ?? ???? ????, ?? ?? ??? ???? ??????? ???????. 4. ??? ??? ??, ??? ?? ?? ?? ???? ??? ?? ??? ??? ??????. ?? ?? ???? ???? ?? ??? ???? ????? ?? ????. ?? ??? ?? ??? ???? ???? ??? ??? ??????.

JavaScript ??? ????? ?, ?? ? ???? ??? ???? WordPress ? ????? ??? ???? ? ????. 1. W3TotalCache, "Minify"???? ?? ??? ????? ??? CACHE ????? ??????. 2. FastvelocityMinify? ?? ?? ?? ????? ?????? ??? ? ??? ??????. 3. ?? ??? ??? ????? ??? JS ??? ???? ???? FTP? ?? ???????. ?? ?? ?? ???? ????? ?? ??? ?? ? ? ??? ??? ? ? ??? ??? ??? ????????.

????? ???? ?? WordPress ???? ????? ??? ??? ????. 1. ?? ?? ??? ??? ?? Astra ?? GeneratePress? ?? ??? ??? ??????. 2. CSS ? JS ??? ???? ???? ???? HTTP ??? ????. 3. ????? ?? ??? ???, ? ??? ???? ?? ??? ??????. 4. configure.htaccess ???? ??? ????? CDN? ???? ?? ????? ??? ??????. 5. ?? ??? ???? ????? ?????? ?? ???? ??????.

TransitientSapi? ?? ?? ???? ??? ?????? WordPress? ?? ?????. ?? ??? set_transient, get_transient ? delete_transient???. ?? API? ???? ??? CACHE API ?? ?? ? ??? ??? ???? ?? ????? ??? ?? ?? (TTL) ??? ?????. ?? ??? ?? ?? ?? ? ?? ????? ???, "??? ??"???? ? ?? ?? ???? ???? ?? ??? ?????? ???????. ???? ?? ???? ?????? ?? ?? ?? ??, ?? ?? ?? ?? ? ????? ?? ??? ?????.

?? ??? ???? ?? ???? ??? ????? ??? ?? ???? ???? ?? ?? ????. 1. ??? ??? ????? ???? ?? ?? ?? ???? (? : Googler Captcha ?? Hcaptcha)? ???? ?? ?? ? ???? ?????. 2. ??? ?? (Honeypot Technology)? ???? ??? ???? ??? ??? ??? ??? ?? ?? ??? ???? ?? ??? ???? ??????. 3. ?? ??? ???? ?????? ???? ??? ?? ??? ?? ?? ??? ????? ?? ??? ??? ????? ?????. 4. ??? ?? ? ?? IP? ???? ?? ??? ?? ?? ???? ?????? ??????. 5. Akismet, CloudFlare? ?? ?? ? ?? ???? ???? ?? ???? ??????. ? ???? ???? ? ? ????

Gutenberg ??? ??? ? Enqueue Assets? ??? ???? ??? ?????. 1. Register_Block_type? ???? editor_script, editor_style ? style? ??? ?????. 2. functions.php ?? ????? wp_register_script ? wp_register_style? ?? ???? ???? ??? ??? ? ??? ??????. 3. ??? ?? ??? ????? ?? ??? ???? ??? ?????????. 4. Add_theme_support ?? enqueue_block_assets? ?? ??? ?? ????????? ???? ??? ?? ?????? ??? ????????.

??? ?? ??? ??? ????? ???? ?? ?? ??? ???? ??? ?? ? ?? ?????? ???????. ???? ???? ??? ?????. 1. ??? ???? ?? ??????? ?? ??? ?? ? ? ?? ?????. 2. ?? ??? ??? ??? ???? ???? ??????. 3. ??? ???? ?? ?? ?? ? ??? ??? ?????. 4. ??? ?? ? ??? ??? ????? ??? ?? ????? ? ??? ???? ?? ????? ? ???? ????????.

Robots.txt? WordPress ? ???? SEO? ???? ?? ??? ?????, ???? ?? ??? ???? ?? ???? ?? ??? ?? ? ? ????. 1. /wp-admin /? /wp-includes /? ?? ??? ??? /??? /????? ??? ???? ????. 2. Siteemap? ?? ??? ? ??? ?????? : https://yourdomain.com/sitemap.xml ?? ??? ??? ?? ??? ?? ? ? ??? ?????. 3. ??? ???? ??? ?? ?? ????? ?? / ??? / ? URL? ??? ???? ???? ???? ?????????. 4. ??? ?? ???? ???? ?? ????? ????? ??? ??? ??? ?? ? ?? ???? ??? ???? ?? ?? ???? ??? ?????.
