most used WordPress terms and functions list WordPress

» Here is a comprehensive list of commonly used terms and functions in the `functions.php` file of WordPress theme. These terms and functions are used to add, modify, or extend the functionality of a WordPress site.

Theme Support Functions

  1. `add_theme_support()`: Adds support for various WordPress features like post thumbnails, custom logos, etc.
  2. `register_nav_menus()`: Registers custom navigation menus.
  3. `add_image_size()`: Adds custom image sizes.

Enqueueing Scripts and Styles

  1. `wp_enqueue_script()`: Enqueues JavaScript files
  2. `wp_enqueue_style()`: Enqueues CSS files.
  3. `wp_register_script()`: Registers script without enqueuing it.
  4. `wp_register_style()`: Registers style without enqueuing it.

Action and Filter Hooks

  1. `add_action()`: Hooks function onto a specific action.
  2. `add_filter()`: Hooks function onto a specific filter.
  3. `remove_action()`: Removes function hooked to an action.
  4. `remove_filter()`: Removes function hooked to a filter.

Custom Post Types and Taxonomies

  1. `register_post_type()`: Registers custom post type.
  2. `register_taxonomy()`: Registers custom taxonomy.
  3. `add_rewrite_rule()`: Adds custom rewrite rule.

Customizer API

  1. `add_setting()`: Adds setting to the customizer.
  2. `add_control()`: Adds control to the customizer.
  3. `customize_register`: Action hook for registering customizer settings and controls.

Widgets and Sidebars

  1. `register_sidebar()`: Registers widget area (sidebar).
  2. `register_widget()`: Registers custom widget.
  3. `dynamic_sidebar()`: Displays sidebar.

User Roles and Capabilities

  1. `add_role()`: Adds a new user role.
  2. `remove_role()`: Removes an existing user role.
  3. `add_cap()`: Adds a capability to a role.
  4. `remove_cap()`: Removes a capability from a role.


  1. `add_shortcode()`: Registers a new shortcode.
  2. `remove_shortcode()`: Removes a registered shortcode.

Utility Functions

  1. `wp_nonce_field()`: Adds a nonce field for security.
  2. `wp_verify_nonce()`: Verifies the nonce for security.
  3. `get_template_part()`: Loads a template part into a template.
  4. `locate_template()`: Locates a template file.

Custom Queries

  1. `WP_Query()`: Class for custom queries to fetch posts.
  2. `query_posts()`: Alters the main query (not recommended).
  3. `get_posts()`: Retrieves posts based on specific parameters.

Options API

  1. `get_option()`: Retrieves a value from the options table.
  2. `update_option()`: Updates a value in the options table.
  3. `delete_option()`: Deletes a value from the options table.
  4. `add_option()`: Adds a new option to the options table.

Other Useful Functions

  1. `is_admin()`: Checks if the current request is for an administrative interface page.
  2. `is_user_logged_in()`: Checks if the current visitor is a logged-in user.
  3. `wp_redirect()`: Redirects to another URL.
  4. `do_action()`: Executes functions hooked on a specific action hook.
  5. `apply_filters()`: Calls the functions hooked to a specific filter.
create custom Shortcodes in WordPress create Shortcode with Parameters in Wordpress
You need to login to do this manipulation!