ngg_datamapper_table_name

Gets the name of the table.

Description

(string) apply_filters( 'ngg_datamapper_table_name', (string) $prefix_this_object_name, (string) $this_object_name ); 

Returns (string)

Parameters (2)

0. $prefix_this_object_name (string)
The prefix this object name.
1. $this_object_name (string)
The this object name.

Usage

To run the hook, copy the example below.
  1. $prefix_this_object_name = apply_filters( 'ngg_datamapper_table_name', $prefix_this_object_name, $this_object_name ); 
  2.  
  3. if ( !empty( $prefix_this_object_name ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ngg_datamapper_table_name callback 
  2. function filter_ngg_datamapper_table_name( $prefix_this_object_name, $this_object_name ) { 
  3. // make filter magic happen here... 
  4. return $prefix_this_object_name
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ngg_datamapper_table_name', 'filter_ngg_datamapper_table_name', 10, 2 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ngg_datamapper_table_name', 'filter_ngg_datamapper_table_name', 10, 2 ); 

Defined (1)

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

/products/photocrati_nextgen/modules/datamapper/package.module.datamapper.php  
  1. return apply_filters('ngg_datamapper_table_name', $prefix . $this->_object_name, $this->_object_name);