Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Adds a custom JavaScript file to the frontend of the site.
<?php
/*
Plugin Name: Custom Script Plugin
Description: Enqueues a custom JS script.
Version: 1.0
Author: Your Name
*/
add_action('wp_enqueue_scripts', 'enqueue_custom_script');
function enqueue_custom_script() {
wp_enqueue_script('custom-script', plugin_dir_url(__FILE__) . 'js/custom.js', array('jquery'), '1.0', true);
}WordPress is an open-source content management system (CMS) written in PHP, widely used for building websites and blogs. Its plugin ecosystem allows extending functionality, from e-commerce to SEO, without heavy custom coding.
Origin & Creator
WordPress was created in 2003 by Matt Mullenweg and Mike Little as a fork of b2/cafelog blogging software.
Industrial Note
WordPress powers millions of websites worldwide, from small blogs to enterprise portals, making it dominant in CMS and web publishing, with extensive plugin support for specialized industries.