paypal_for_woocommerce_register_post_type_paypal_transaction_history

The PayPal for WooCommerce paypal for woocommerce register post type transaction history hook.

Description

apply_filters( 'paypal_for_woocommerce_register_post_type_paypal_transaction_history', (callback) $array ); 

Parameters (1)

0. $array — Optional. (callback) => array( 'labels' => array( 'name' => __('PayPal Transaction', 'paypal-for-woocommerce'), 'singular_name' => __('PayPal Transaction', 'paypal-for-woocommerce'), 'menu_name' => _x('PayPal Transaction', 'Admin menu name', 'paypal-for-woocommerce'), 'add_new' => __('Add PayPal Transaction', 'paypal-for-woocommerce'), 'add_new_item' => __('Add New PayPal Transaction', 'paypal-for-woocommerce'), 'edit' => __('Edit', 'paypal-for-woocommerce'), 'edit_item' => __('View PayPal Transaction', 'paypal-for-woocommerce'), 'new_item' => __('New PayPal Transaction', 'paypal-for-woocommerce'), 'view' => __('View PayPal Transaction', 'paypal-for-woocommerce'), 'view_item' => __('View PayPal Transaction', 'paypal-for-woocommerce'), 'search_items' => __('Search PayPal Transaction', 'paypal-for-woocommerce'), 'not_found' => __('No PayPal Transaction found', 'paypal-for-woocommerce'), 'not_found_in_trash' => __('No PayPal Transaction found in trash', 'paypal-for-woocommerce'), 'parent' => __('Parent PayPal Transaction', 'paypal-for-woocommerce') ), 'description' => __('This is where you can add new PayPal Transaction to your store.', 'paypal-for-woocommerce'), 'public' => false, 'show_ui' => false, 'capability_type' => 'post', 'capabilities' => array( 'create_posts' => false, ), 'map_meta_cap' => true, 'publicly_queryable' => true, 'exclude_from_search' => false, 'hierarchical' => false, 'rewrite' => array('slug' => 'paypal_ipn'), 'query_var' => true, 'supports' => array('', ''), 'has_archive' => true, 'show_in_nav_menus' => FALSE )
The array.

Usage

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

Defined (1)

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

/angelleye-includes/angelleye-utility.php  
  1. register_post_type('paypal_transaction', apply_filters('paypal_for_woocommerce_register_post_type_paypal_transaction_history', array(