Submit
Path:
~
/
home
/
getwphos
/
www
/
almajd14
/
wp-content
/
plugins
/
qi-addons-for-elementor
/
inc
/
plugins
/
contact-form-7
/
File Content:
helper.php
<?php if ( ! defined( 'ABSPATH' ) ) { // Exit if accessed directly. exit; } if ( ! function_exists( 'qi_addons_for_elementor_get_contact_form_7_forms' ) ) { /** * Function that return array of contact form 7 forms * * @param bool $enable_default - add first element empty for default value * * @return array */ function qi_addons_for_elementor_get_contact_form_7_forms() { $options = array(); $contact_forms = get_posts( 'post_type="wpcf7_contact_form"&numberposts=-1' ); if ( ! empty( $contact_forms ) ) { foreach ( $contact_forms as $contact_form ) { $options[ $contact_form->ID ] = esc_html( $contact_form->post_title ); } } else { $options[0] = esc_html__( 'No contact forms found', 'qi-addons-for-elementor' ); } return $options; } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
shortcodes
---
0755
class-qiaddonsforelementor-contact-form-7.php
1450 bytes
0644
helper.php
791 bytes
0644
include.php
197 bytes
0644
N4ST4R_ID | Naxtarrr