Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

constants

Define constant for one plugin in mu-plugin

@toscho’s link solved this. PHP constants are case sensitive. ACF uses ACF_LITE, you are using ACF_Lite.

Categories plugins Tags advanced-custom-fields, constants, mu-plugins, plugins

Making Site A Use Site B’s wp-content Folder

Making Site A Use Site B’s wp-content Folder

Categories uploads Tags constants, core, hooks, sync, uploads

Notice: Use of undefined constant – assumed ‘ ‘

Notice: Use of undefined constant – assumed ‘ ‘

Categories wp-debug Tags constants, wp-debug

Notice: Use of undefined constant Redux_TEXT_DOMAIN – assumed ‘Redux_TEXT_DOMAIN’

The problem with your $item_info is that the variable is not initialized before your try to append to it. $item_info .= ‘String content’; is the exact same thing as $item_info = $item_info . ‘String content’;, so all you need is to check whether or not this variable exists: if (!isset($item_info)) { $item_info = ”; } … Read more

Categories plugins Tags constants, plugins, textdomain, themes

Where and how to define variables for URLs etc

I believe you can just use site_url() + the path – so for instance: <input type=”hidden” name=”cancelurl” value=”<?php echo site_url(‘/cancel/’); ?>”>

Categories variables Tags constants, variables

Child theme functions.php file change database entries

You shouldn’t need to change anything in the database. If you’ve set up your child theme correctly, and it appears in the list of installed themes, activating that child theme, should make any updates necessary. The customizations you made back in the day should go in the child functions.php and child style.css. As long as … Read more

Categories PHP Tags child-theme, constants, database, php, variables

Cannot enable WordPress Network – ‘MULTISITE’ already defined and false

Cannot enable WordPress Network – ‘MULTISITE’ already defined and false

Categories multisite Tags constants, multisite, network-admin

WP_HOME (and WP_URL) are undefined

WP_HOME (and WP_URL) are undefined

Categories dashboard Tags constants, dashboard, site-health-widget

Constant defined in header.php not visible in functions.php

Constant defined in header.php not visible in functions.php

Categories constants Tags constants

Is it better to use a constant or apply_filter?

Is it better to use a constant or apply_filter?

Categories filters Tags constants, filters
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page9 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress