get_the_title

Retrieve post title.

Description

(string) get_the_title( $postID ); 

Returns (string)

Parameters (1)

0. $postid
The postID.

Usage

  1. if ( !function_exists( 'get_the_title' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'contact-form-db/phpunit/CFDBIntegrationWRContactFormTest.php'; 
  3.  
  4. // The postID. 
  5. $postid = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = get_the_title($postid); 
  9.  

Defined (1)

The function is defined in the following location(s).

/phpunit/CFDBIntegrationWRContactFormTest.php  
  1. function get_the_title($postID) { 
  2. return "Title_$postID";