Contact
For developers / Hooks and filters
  1. Home
  2. Database for Contact Form 7
  3. For developers
  4. Hooks and filters
For developers

Hooks and filters

1 min readUpdated Nov 3, 2026
HookTypeArgumentsUse
nbwpas_fem_loadedaction$pluginThe plugin has finished loading. Register an add-on here.
nbwpas_fem_entry_createdaction$entry_id, $ctxAn entry was saved. $ctx['imported'] is true for imports.
nbwpas_fem_entry_updatedaction$entry_id, $changed_fieldsAn entry was edited.
nbwpas_fem_entries_deletedaction$idsEntries were permanently deleted.
nbwpas_fem_admin_tabsfilter$pagesAdd or reorder admin tabs (slug => [title, capability]); you render the screen.
nbwpas_fem_private_dirfilter$dirMove the private file folder.
add_action( 'nbwpas_fem_entry_created', function ( $entry_id, $ctx ) {
    if ( ! empty( $ctx['imported'] ) ) {
        return; // Ignore imported entries.
    }
    // $ctx['posted'] holds the submitted values.
}, 10, 2 );

Constants: NBWPAS_FEM_PRIVATE_DIR (path for private files). Capabilities are listed in Who can do what.