The first block of code, from your question, is all you need. ‘jquery’ is specified in wp_register_script
function call as dependency. When you enqueue your ‘custom_script’, ‘jquery’ will be enqueued also.
The first block of code, from your question, is all you need. ‘jquery’ is specified in wp_register_script
function call as dependency. When you enqueue your ‘custom_script’, ‘jquery’ will be enqueued also.