Skip to content

Instantly share code, notes, and snippets.

@andreiglingeanu
Created February 14, 2024 08:23
Show Gist options
  • Save andreiglingeanu/48bc4f6cbdfacd0a61c5bfdbc7876e87 to your computer and use it in GitHub Desktop.
Save andreiglingeanu/48bc4f6cbdfacd0a61c5bfdbc7876e87 to your computer and use it in GitHub Desktop.

Revisions

  1. andreiglingeanu created this gist Feb 14, 2024.
    16 changes: 16 additions & 0 deletions gistfile1.aw
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    <?php

    add_action(
    'init',
    function () {
    global $wpdb;

    $wpdb->query(
    "
    DELETE
    FROM {$wpdb->postmeta}
    WHERE meta_key = 'blocksy_post_meta_options'
    "
    );
    }
    );