Skip to main content
Home
Drupal life hacks

Main navigation

  • Drupal
  • React
  • WP
  • Contact
  • About
User account menu
  • Log in

Breadcrumb

  1. Home

WordPress

By admin, 4 October, 2025
This kind of visual immediately shows readers the architectural difference and why Drupal is more robust for complex projects.

5 Reasons Why WordPress Doesn’t Separate Business Logic and Presentation (With Examples)

Modern web applications are built on the principle of separating business logic (data processing, site rules) from presentation logic (how content is displayed to the user). Drupal strictly follows this principle, while WordPress often mixes these layers. Here are five reasons with concrete examples.


1. Functionality Tied to the Theme

WordPress:

Tags

  • #Drupal Planet
  • WordPress
By admin, 20 May, 2024

Understanding the Difference Between WordPress Filters and Actions

In WordPress, understanding the difference between filters and actions is crucial for effectively extending and customizing the functionality of the platform. Let's explore the distinctions between the two:

Tags

  • WordPress
By admin, 20 May, 2024

Choosing Between PHP's call_user_func_array and \Closure::fromCallable

call_user_func_array and \Closure::fromCallable are two different ways to call functions or closures in PHP, each with its own features and applications.

call_user_func_array:

call_user_func_array is a built-in PHP function that invokes a function passed as a string or as an array (containing an object reference and method name) and passes arguments as an array.

Example usage:

Tags

  • #Drupal Planet
  • WordPress
By admin, 19 May, 2024

Exploring Hooks: Extending Functionality in WordPress and Drupal

Hooks in both WordPress and Drupal 8 are mechanisms for developers to extend and modify the functionality of the core software or themes/modules without modifying the original code directly. However, their implementation differs between the two platforms.

WordPress Hooks:

In WordPress, hooks are actions and filters.

Tags

  • #Drupal Planet
  • WordPress
  • Hooks
By admin, 17 May, 2024

Comparing Drupal Fields and WordPress Metadata

When comparing Drupal fields with WordPress meta, we're essentially looking at how each system handles additional data associated with content items like posts, pages, or custom content types.

Drupal Fields

In Drupal, fields are used to capture and store additional data associated with content entities. They provide a structured and flexible way to extend the core content types with custom data fields.

Tags

  • #Drupal Planet
  • WordPress
By admin, 17 May, 2024

Comparing Drupal Entity Bundles with WordPress Pages and Posts

Drupal and WordPress are both powerful content management systems (CMS), but they handle content in different ways. Understanding the concepts of "entity bundles" in Drupal and "pages" and "posts" in WordPress is key to leveraging the strengths of each platform.

Drupal: Entity Bundles

In Drupal, content is managed through a system of entities and bundles:

1. Entity: An entity is a general-purpose object, a container for holding data. Examples of entities include nodes, users, taxonomy terms, comments, and more.

Tags

  • #Drupal Planet
  • WordPress
By admin, 15 May, 2024

Routing in WordPress

WordPress does not have a built-in routing system like some other web frameworks. Instead, it relies on a set of rewrite rules managed by the WordPress Rewrite API. Here's how routing works in WordPress:

1. Permalinks Settings: In the WordPress admin dashboard, you can set up the permalink structure for your site. Permalinks define how URLs for posts, pages, categories, and other content are structured.

Tags

  • WordPress
By admin, 15 May, 2024

Wordpress architecture

The architecture of WordPress includes several key components that enable it to function as a content management system (CMS). Here are the main elements of the WordPress architecture:

1. Core: The WordPress core is the main part of the platform containing the fundamental CMS functionality. This includes core classes, functions, and files needed to handle requests, work with the database, manage users, publish content, and perform other core tasks.

Tags

  • WordPress
By admin, 15 May, 2024

Technologies used in Drupal, Wordpress and Laravel?

Both Drupal and WordPress are content management systems (CMS) that utilize various technologies to power their platforms. Here are the primary technologies used in each:

Drupal:

Tags

  • #Drupal Planet
  • WordPress
By admin, 15 May, 2024

Why wordpress don't use composer?

WordPress, as a platform, has been around for quite some time, and its development practices have evolved over the years. One of the reasons WordPress doesn't use Composer as its primary package manager is historical.

WordPress started as a simple blogging platform in 2003, long before Composer became popular in the PHP ecosystem. As it grew, backward compatibility became a significant concern. Introducing a new dependency manager would require significant changes to the existing ecosystem, plugins, themes, and custom codebases.

Tags

  • WordPress

Pagination

  • 1
  • Next page
WordPress
Powered by Drupal