: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Abstract for Integration Form
* @copyright Copyright (c) 2023, Code Atlantic LLC
abstract class PUM_Abstract_Integration_Form extends PUM_Abstract_Integration implements PUM_Interface_Integration_Form {
abstract public function get_forms();
abstract public function get_form( $id );
abstract public function get_form_selectlist();
public function custom_scripts( $js = [] ) {
public function custom_styles( $css = [] ) {
* Retrieves the popup ID associated with the form, if any
public function get_popup_id() {
return isset( $_REQUEST['pum_form_popup_id'] ) && absint( $_REQUEST['pum_form_popup_id'] ) > 0 ? absint( $_REQUEST['pum_form_popup_id'] ) : false;
* Increase the conversion count for popup
* @param int $popup_id The ID for the popup.
public function increase_conversion( $popup_id ) {
$popup_id = intval( $popup_id );
$popup = pum_get_popup( $popup_id );
$popup->increase_event_count( 'conversion' );
* Returns whether or not we should process any form submissions
* @return bool True if we should process the form submission
public function should_process_submission() {
if ( wp_doing_ajax() || defined( 'REST_REQUEST' ) ) {