Hooks and filters

Actions

  • optinflare_form_submitted( array $data ): after a successful sign-up. Keys: form_id, form_source_id, language, form_title, display_type, contact_id, provider, email, first_name, last_name, lists, tags, double_optin, custom_fields, consent_proof, lead_magnet, funnel_context, deliveries.
  • optinflare_submission_recorded( array $data ): after every accepted submission, including one whose actions all failed.
  • optinflare_action_ran( $provider_id, $result, $form_id ): after each submission action.
  • optinflare_email_notification_delivered( $form_id, $sent )
  • optinflare_imported_form( $form, $new_id, $map )
  • optinflare_statistics_event_excluded: for each statistics event that is not counted.
  • Pro: optinflare_lead_magnet_delivered( $request ), optinflare_lead_magnet_downloaded( $payload ), optinflare_webhook_delivered( $config, $entry, $result, $attempt ), optinflare_webhook_failed( $config, $entry, $result, $attempt ), optinflare_webhook_received( $id, $payload, $request ), optinflare_revenue_attributed( $form_id, $total, $order_id ).

Filters

  • optinflare_register_providers( array $providers ): add a destination.
  • optinflare_blocked_domains( array $domains ) and optinflare_email_blocked( bool $blocked, string $email )
  • optinflare_client_ip( string $ip )
  • optinflare_confirmation_resend_interval( int $seconds )
  • optinflare_log_submissions( bool $log )
  • optinflare_form_defaults( array $defaults, string $display_type )
  • optinflare_max_auto_inline_forms( int $limit, WP_Post $post ): number of inline forms inserted automatically in a post (1 by default).
  • Statistics: optinflare_track_statistics_event, optinflare_statistics_enabled, optinflare_statistics_excluded_roles, optinflare_statistics_excluded_ips, optinflare_statistics_bot_patterns. See Choose which visits are counted.
  • Pro: optinflare_visitor_country( string $country ), optinflare_white_label_options( array $options ).

Last update

Table of contents