__( 'Integrations', 'wpcoderpro' ), 'content' => __( 'Content & Templates', 'wpcoderpro' ), 'developer' => __( 'Developer', 'wpcoderpro' ), ]; ?>

Tools & Integrations

Manage useful features and external service integrations to enhance your site.

$value ) { $tab = ! empty( $options['tool_tab'] ) ? $options['tool_tab'] : 'integrations'; echo ''; } echo '
'; foreach ( $tools as $key => $value ) { echo ''; } echo '
'; foreach ( $tools as $key => $value ) { echo '
'; require_once plugin_dir_path( __FILE__ ) . 'pages/' . esc_attr( $key ) . '.php'; echo ''; echo '
'; } ?>
'; } elseif ( $type === 'textarea' ) { $value = ! empty( $options[ $name ] ) ? $options[ $name ] : $def; echo ''; } else { $value = ! empty( $options[ $name ] ) ? $options[ $name ] : $def; echo ''; } } private static function send(): void { if ( ! self::verify() ) { return; } if ( empty( $_POST['wp_coder_tool'] ) ) { $snippets = []; } else { $snippets = map_deep( $_POST['wp_coder_tool'], 'sanitize_text_field' ); } update_option( '_wp_coder_tools', $snippets ); } private static function verify(): bool { $wp_coder = $_POST['wp_coder_tool'] ?? ''; $nonce_name = WPCoder::PREFIX . '_save_tools'; $nonce_action = WPCoder::PREFIX . '_tools_action'; if ( empty( $_POST[ $nonce_name ] ) ) { return false; } return wp_verify_nonce( $_POST[ $nonce_name ], $nonce_action ) && current_user_can( 'unfiltered_html' ); } }