Skip to main content
Home
Drupal life hacks

Main navigation

  • Drupal
  • React
  • WP
  • Contact
  • About
User account menu
  • Log in
By admin, 8 April, 2024

Localization Functions in WordPress and Drupal: `__()` vs `t()`

Both `__()` in WordPress and `t()` in Drupal are essential functions for handling localization and translation within their respective platforms. Here are more details on each:

Tags

  • #Drupal Planet
By admin, 8 April, 2024

Comparison of add_menu_page in WordPress and MenuLinkContent in Drupal

Comparing `add_menu_page` in WordPress with `MenuLinkContent` in Drupal involves understanding how each platform handles the creation of menu items:

Tags

  • #Drupal Planet
By admin, 8 April, 2024

Comparison of plugin_dir_path in WordPress and service('extension.list.module')->getPath in Drupal

Comparing plugin_dir_path in WordPress with service('extension.list.module')->getPath in Drupal involves understanding how each platform retrieves the directory path of plugins/modules:

Tags

  • #Drupal Planet
By admin, 8 April, 2024

Comparison of $wpdb->query in WordPress and $database->query in Drupal

Comparing `$wpdb->query` in WordPress with the `query` method in Drupal involves understanding how each platform handles database queries:

Tags

  • #Drupal Planet
By admin, 8 April, 2024

Comparison of $wpdb->prefix in WordPress and {table} in Drupal

Comparing $wpdb->prefix in WordPress with {table} in Drupal involves understanding how each platform handles database table prefixes:

Tags

  • #Drupal Planet
By admin, 8 April, 2024

Comparison of register_activation_hook in WordPress and hook_install in Drupal

register_activation_hook in WordPress and hook_install in Drupal serve similar purposes in their respective platforms, but they have some differences in terms of implementation and functionality.

Tags

  • #Drupal Planet
By admin, 8 April, 2024

Comparison of Coding Standards in WordPress and Drupal

Comparing Coding Standards in WordPress and Drupal:

Tags

  • #Drupal Planet
By admin, 8 April, 2024

An In-Depth Comparison: WordPress Plugin Headers vs Drupal Module Info

Comparing "Plugin Headers" in WordPress with "Module Info" in Drupal:

Tags

  • #Drupal Planet
By admin, 8 April, 2024

An In-Depth Comparison: WordPress Plugins vs Drupal Modules

Comparison: WordPress Plugin vs Drupal Module

Tags

  • #Drupal Planet
By admin, 8 April, 2024

Comparison: Filter Hooks in WordPress vs hook_alter in Drupal

Filter Hooks in WordPress:
- Filter hooks are used to modify data or the result of an operation before it's outputted or used in WordPress.
- They allow for modifying text, metadata, attributes, and other data that WordPress generates or retrieves before it's displayed.
- Example: the_content, the_title, the_excerpt.

Tags

  • #Drupal Planet
  • Hooks
  • WordPress

Pagination

  • First page
  • Previous page
  • …
  • Page 9
  • Page 10
  • Page 11
  • Page 12
  • Page 13
  • Page 14
  • Page 15
  • Page 16
  • Page 17
  • …
  • Next page
  • Last page
Powered by Drupal