Don’t hesitate to contact us if you have any feedback.

Tag: Wordpress

  • WordPress – How to disable/enable plugin programmatically

    WordPress – How to disable/enable plugin programmatically

    Maintaining different environments for a WordPress site—such as development, staging, and production—can often require specific plugins to be active in one environment and not in others. The following PHP code snippet simplifies the process of enabling and disabling plugins based on the environment type, right from the WordPress admin dashboard. The Code The function env_plugins_notice

    Read more

  • WordPress – Empty title placeholder

    WordPress – Empty title placeholder

    When managing a WordPress website, content editors and authors sometimes leave the title field blank, which can lead to confusion and a lack of consistency in the user interface. To address this issue, the following WordPress snippet automatically adds a placeholder text (No title) when a page or post title is left undefined. The Code

    Read more

  • WordPress – Environment Indicator

    WordPress – Environment Indicator

    When managing multiple environments for a WordPress website, such as development, staging, and production, it’s crucial to differentiate between them to prevent mistakes like applying changes to the live site instead of a test environment. The following PHP snippet provides a visual cue in the WordPress admin dashboard to indicate the current environment type. This

    Read more

  • WordPress – Customize Page Title

    WordPress – Customize Page Title

    In the realm of WordPress, altering the title of a page dynamically can be an essential customization to better reflect the content or the branding of the site. The following PHP snippet demonstrates how to change the page title using a WordPress filter hook. Code This snippet leverages the pre_get_document_title filter, which allows developers to

    Read more

  • WordPress – Updating site URL directly in the Database

    WordPress – Updating site URL directly in the Database

    Introduction When moving a WordPress website to a new domain, it’s crucial to update the site’s URL to ensure that all references point to the correct location. This can be accomplished directly in the database using a series of SQL statements. SQL Update Statements The following SQL commands are designed to update various parts of

    Read more

  • How to setup Honeypot for Contact Form 7 (French)

    How to setup Honeypot for Contact Form 7 (French)

    Overview and configuration of the Honeypot for Contact Form 7 extension for effective spam protection (in french, use Deepl idk) https://holdmywp.com/configurer-honeypot-for-contact-form-7/

    Read more