Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update paypal_transaction post type arguments #1031

Merged
merged 1 commit into from
Mar 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions angelleye-includes/angelleye-utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -957,23 +957,8 @@ public function paypal_for_woocommerce_paypal_transaction_history() {
),
'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, // Removes support for the "Add New" function
),
'map_meta_cap' => true,
'publicly_queryable' => true,
'exclude_from_search' => false,
'hierarchical' => false, // Hierarchical causes memory issues - WP loads all records!
'rewrite' => array('slug' => 'paypal_ipn'),
'query_var' => true,
'supports' => array('', ''),
'has_archive' => true,
'show_in_nav_menus' => FALSE
)
)
);
'query_var' => false,
) ) );
}

public function angelleye_paypal_for_woocommerce_order_action_meta_box($post_type, $post) {
Expand Down