to do migrate from my hacker notes

session id

A PHP Session ID is a unique, random string generated by PHP to track individual users across different pages of a website, allowing the server to “remember” user-specific data (like login status or shopping cart items). It is stored as a cookie in the user’s browser, by default called PHPSESSID.

Is it automatic for all PHP websites? No, it is not always “auto” in the sense that it starts on its own. While PHP is capable of generating it automatically, a session generally requires a session_start() function call in the code to initiate. Once initiated, PHP manages the ID automatically.

Is it automatic in WordPress? No, WordPress does not use standard PHP sessions (and therefore not the PHPSESSID cookie) by default. Why: WordPress was designed to avoid PHP sessions to ensure better caching and performance, as unique session IDs break page caching. How WordPress handles sessions: Instead of $_SESSION, WordPress uses cookies and database-backed session tokens (stored in wp_usermeta) to manage user sessions and login states. When it is used: If a plugin or theme calls session_start(), then a PHP session will be created, but this is not native behavior.

layouts

hooks

https://developer.wordpress.org/reference/hooks/

ajax

https://developer.wordpress.org/plugins/javascript/ajax/ https://codex.wordpress.org/AJAX_in_Plugins https://deliciousbrains.com/comparing-wordpress-rest-api-performance-admin-ajax-php/

https://developer.wordpress.org/reference/hooks/wp_ajax_nopriv_action/

filters

wp_localize_script

Pass PHP values to a JavaScript file in WordPress https://developer.wordpress.org/reference/functions/wp_localize_script/ https://blog.wplauncher.com/pass-php-values-to-a-javascript-file-in-wordpress/#:~:text=In%20order%20to%20pass%20PHP,script%20in%20a%20PHP%20file.

wp_reset_postdata

wp_enqueue_style

wp_enqueue_scripts

themes

https://developer.wordpress.org/themes/getting-started/

divi builder

https://www.elegantthemes.com/documentation/divi/visual-builder/ 自定义主题 divi child theme https://www.elegantthemes.com/blog/divi-resources/divi-child-theme