cptui_get_post_form_action

Construct action tag for `

` tag.

Description

(string) cptui_get_post_form_action( (string) $ui = '' ); 

Returns (string)

Parameters (1)

0. $ui — Optional. (string) => ''
CPTUI Admin UI instance. Optional. Default empty string.

Usage

  1. if ( !function_exists( 'cptui_get_post_form_action' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'custom-post-type-ui/inc/utility.php'; 
  3.  
  4. // CPTUI Admin UI instance. Optional. Default empty string. 
  5. $ui = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = cptui_get_post_form_action($ui); 
  9.  

Defined (1)

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

/inc/utility.php  
  1. function cptui_get_post_form_action( $ui = '' ) { 
  2. /** 
  3. * Filters the string to be used in an `action=""` attribute. 
  4. * @since 1.3.0 
  5. */ 
  6. return apply_filters( 'cptui_post_form_action', '', $ui );