• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Jetpack a2z

Jetpack a2z

Jetpack a2z

  • Home
  • Plugins
  • Blocks
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / WPCOM_JSON_API_Endpoint::generate_doc_description() – Recursively generates the <dl>’s to document item descriptions.

You appear to be a bot. Output may be restricted

Description

Recursively generates the <dl>'s to document item descriptions.

Echoes HTML.

Usage

WPCOM_JSON_API_Endpoint::generate_doc_description( $item );

Parameters

$item
( mixed ) required –

Returns

void

Source

File name: jetpack/class.json-api-endpoints.php


Lines:

1 to 20 of 20
  function generate_doc_description( $item ) {
    if ( is_array( $item ) ) :
      ?>

		<dl>
			<?php	foreach ( $item as $description_key => $description_value ) : ?>

			<dt><?php echo wp_kses_post( $description_key . ':' ); ?></dt>
			<dd><?php $this->generate_doc_description( $description_value ); ?></dd>

			<?php	endforeach; ?>

		</dl>

			<?php
    else :
      echo wp_kses_post( $item );
    endif;
  }
 

 View on GitHub View on Trac

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Pinterest (Opens in new window)

Related

Published: 27 November 2019 | Last updated: 27 November 2019

Primary Sidebar

Information

Function name: WPCOM_JSON_API_Endpoint::generate_doc_description
Class ref: WPCOM_JSON_API_Endpoint
Plugin ref: Jetpack
Version: 7.9.1
Sourcefile: class.json-api-endpoints.php
File ref: class.json-api-endpoints.php
Deprecated?: No
API Letters: A,E,G,J,W

Footer

Jetpack a2z Jetpack a2z
Jetpack a2z
WordPress 5.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  jetpack.wp-a2z.org
© Copyright Jetpack a2z 2014-2019. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites