Skip to main content
deleted 2 characters in body
Source Link
user3574603
  • 341
  • 1
  • 2
  • 11

I'm having trouble navigating the WP documentation so forgive me if this is common knowledge.

Is it possible to view the documentation of classes and methods from within the shell?

That is, is there a command that I can type at the wp-shell prompt that will return the api documentation for a given method/class.

Something like:

doc(get_posts());
#=> get_posts( array $args = null )
# Retrieves an array of the latest posts, or posts matching the given criteria.
# Parameters
# $args
# ...

For example, pry-doc in Ruby provides something similar.

I'm having trouble navigating the WP documentation so forgive me if this is common knowledge.

Is it possible to view the documentation of classes and methods from within the shell?

That is, is there a command that I can type at the wp-shell prompt that will return the api documentation for a given method/class.

Something like:

doc(get_posts());
#=> get_posts( array $args = null )
# Retrieves an array of the latest posts, or posts matching the given criteria.
# Parameters
# $args
# ...

For example, pry-doc in Ruby provides something similar.

I'm having trouble navigating the WP documentation so forgive me if this is common knowledge.

Is it possible to view the documentation of classes and methods from within the shell?

That is, is there a command that I can type at the wp-shell prompt that will return the api documentation for a given method/class.

Something like:

doc(get_posts);
#=> get_posts( array $args = null )
# Retrieves an array of the latest posts, or posts matching the given criteria.
# Parameters
# $args
# ...

For example, pry-doc in Ruby provides something similar.

be more explicit
Source Link
user3574603
  • 341
  • 1
  • 2
  • 11

I'm having trouble navigating the WP documentation so forgive me if this is common knowledge.

Is it possible to view the documentation of classes and methods from within the shell?

That is, is there a command that I can type at the wp-shell prompt that will return the api documentation for a given method/class.

Something like:

doc(get_posts());
#=> get_posts( array $args = null )
# Retrieves an array of the latest posts, or posts matching the given criteria.
# Parameters
# $args
# ...

For example, pry-doc in Ruby provides something similar.

I'm having trouble navigating the WP documentation so forgive me if this is common knowledge.

Is it possible to view the documentation of classes and methods from within the shell?

I'm having trouble navigating the WP documentation so forgive me if this is common knowledge.

Is it possible to view the documentation of classes and methods from within the shell?

That is, is there a command that I can type at the wp-shell prompt that will return the api documentation for a given method/class.

Something like:

doc(get_posts());
#=> get_posts( array $args = null )
# Retrieves an array of the latest posts, or posts matching the given criteria.
# Parameters
# $args
# ...

For example, pry-doc in Ruby provides something similar.

Source Link
user3574603
  • 341
  • 1
  • 2
  • 11

Is it possible to view WP documentation within the WordPress shell?

I'm having trouble navigating the WP documentation so forgive me if this is common knowledge.

Is it possible to view the documentation of classes and methods from within the shell?