Este plugin no ha sido probado con ninguna las 3 últimas versiones principales de WordPress. Puede que ya no se mantenga o no tenga soporte, y puede que tenga problemas de compatibilidad cuando se utiliza con versiones más recientes de WordPress.

WP Development Utilities

Descripción

This script is useful during the development of WordPress, because will extend with a set of functions.

Usage

class WP_Dev_Utilities:

  • _debug() – A function to print variable only if the user logged as administrator
  • _retrieve_user_data() – Retrive user data informations only if user is logged in
  • count_num_pages_post($id) – Returns the number of pages of a post
  • get_current_execution_time($precision = 3) – Get the current execution time
  • get_logged_username() – Returns the name of the user logged on
  • get_post_content_from_id($id) – Return the content of the post from his id
  • get_post_content_from_permalink($permalink) – Return the contents of the post permalink
  • get_post_id_from_permalink($permalink) – Return the id of the post permalink
  • is_administrator() – Check if logged user has the administrator privileges
  • get_web_browser($shortname = false, $uppercase = false) – Returns the user’s browser name
  • get_web_server($uppercase = false) – Returns the web server is use
  • get_wp_version() – Get the current wordpress version
  • get_tag_slug($title) – Get the tag slug from tag title
  • get_current_tag_slug($title) – Get the tag slug from the current tag title

Instalación

Follow the below instruction for the installation of this plugin.

  1. Upload wp-dev-utilities.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the functions wherever you need (use the $wpdu variable).

Opiniones

No hay reseñas para este plugin.

Colaboradores & Desarrolladores

“WP Development Utilities” es software de código abierto. Las siguientes personas han contribuido a este plugin.

Colaboradores

Traduce & #8220;WP Development Utilities” a tu idioma.

¿interesado en el desarrollo?

Revisa el código , echa un vistazo al repositorio SVN , o suscríbete al log de desarrollo por RSS .