芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/www/wp-content/plugins/metform/core/entries/hooks.php
post_title) ? $form_name->post_title : ''); global $wp; $current_url = add_query_arg($wp->query_string . "&mf_form_id=" . $form_id, '', home_url($wp->request)); echo "
" . esc_html($post_title) . "
"; break; case 'referral': $page_id = get_post_meta( $post_id, 'mf_page_id',true ); global $wp; $current_url = add_query_arg($wp->query_string . "&mf_ref_id=" . $page_id, '', home_url($wp->request)); echo "
".esc_html(get_the_title($page_id))."
"; break; case 'email_verified': $email_verified = get_post_meta($post_id, 'email_verified', true); if($email_verified == true) { echo "
".esc_html__('Yes', 'metform')."
"; }else { echo "
".esc_html__('No', 'metform')."
"; } break; case 'export_actions': // Show PDF export button when pro plugin is activated if(in_array('metform-pro/metform-pro.php', apply_filters('active_plugins', get_option('active_plugins')))): echo "
".esc_html__('PDF Export', 'metform')."
query_vars['post_type'] == 'metform-entry' && isset($_GET['mf_form_id']) //phpcs:ignore WordPress.Security.NonceVerification && $_GET['mf_form_id'] != 'all' //phpcs:ignore WordPress.Security.NonceVerification ) { $form_id = sanitize_key($_GET['mf_form_id']); //phpcs:ignore WordPress.Security.NonceVerification $query->query_vars['meta_key'] = 'metform_entries__form_id'; $query->query_vars['meta_value'] = $form_id; $query->query_vars['meta_compare'] = '='; } if ( is_admin() && 'metform-entry' == $current_page && 'edit.php' == $pagenow && $query->query_vars['post_type'] == 'metform-entry' && isset($_GET['mf_ref_id']) //phpcs:ignore WordPress.Security.NonceVerification && $_GET['mf_ref_id'] != 'all' //phpcs:ignore WordPress.Security.NonceVerification ) { $page_id = sanitize_key($_GET['mf_ref_id']); //phpcs:ignore WordPress.Security.NonceVerification $query->query_vars['meta_key'] = 'mf_page_id'; $query->query_vars['meta_value'] = $page_id; $query->query_vars['meta_compare'] = '='; } } public function wp_mail_from($name) { return get_bloginfo('name'); } /** * Metform Additional Upload Mimes * * @since 3.8.9 * @access public * @param array $mimes * @return array */ public function metfom_additional_upload_mimes( $mimes ) { $mimes['stl'] = 'application/octet-stream'; $mimes['psd'] = 'image/vnd.adobe.photoshop'; $mimes['stp'] = 'text/plain; charset=us-ascii'; return $mimes; } }