Most likely the reason this is hanging is because hook you are using is not complete. woocommerce_payment_complete_order_status is a hook for a filter but you are using an add_action. The hook for the add_action should be woocommerce_payment_complete_order_status_{$get_status}
resource for filter
http://hookr.io/plugins/woocommerce/3.0.6/filters/woocommerce_payment_complete_order_status/
apply_filters( 'woocommerce_payment_complete_order_status', 'create_fundraiser_purchase_post', 10, 2 );
resource for action
http://hookr.io/plugins/woocommerce/3.0.6/actions/woocommerce_payment_complete_order_status_get_status/
add_action( 'woocommerce_payment_complete_order_status_{$get_status}', 'create_fundraiser_purchase_post', 10, 2 );
Related Posts:
- Get Post ID by Content
- Show all sticky posts, WITH pagination
- Will a post object’s “post_name” always be equal to the “path” on non-hierarchal custom post types? (using get_page_by_path() function)
- WordPress search: pretty URLs (permalinks), custom post types and pagination
- register_taxonomy with multiple object type and update_count_callback
- Dynamically Create Terms in Taxonomy when Custom Post Type is Published. Almost There!
- How to customize the Categories meta box to allow only one category?
- pre get posts changing the query
- Custom permalink structure for custom post type
- Use a textarea for a custom post type
- Post type hierarchy
- Assigning Multiple Layout Designs with Custom Pages in WordPress?
- Display Custom Category (taxonomy) Name in Custom Post Type
- Recommended way to remove WP REST API returned data for custom post
- Separate Posts and Custom Post Type in Custom Taxonomy archive template
- Order WordPress Custom Taxonomy Pages & Pagination Not Working
- Custom Post Type + 20k posts = blank/404 within Admin edit.php [duplicate]
- Rewrite WordPress URL to show CPT meta field data
- Create/Edit posts and auto-redirect back to listing page
- How to load a template without it being assigned to a page/post?
- Is it possible to list and create custom post types with Vimpress?
- Set menu active state for custom posttype and category, given custom taxonomy term
- how to check if custom post type column already exists?
- Custom Post Type Tag Capabilities Not Working
- different post-class when template is loaded via ajax
- Custom post type structure for posts with multiple child posts
- Hide parent categories when clicked, and show it’s childs
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- Multiple (two) category postings on the same page.
- Admin Column does not populate with data
- “Submit for review” for updates on existing posts
- Auto Complete Search
- permalink /category/post-name with custom post type and taxonomy
- Creating a Custom Post Type and Joining with Users
- Custom post type pages return 404 page?
- Send a conditional email notification when a custom field value changes in Post Type
- Custom taxonomy page returns 404
- Select other roles as custom post authors
- Why does wp_update_post causes white screen?
- Targeting custom post type via functions.php doesn’t work
- Show all Tags in each post
- Custom post type to lead to single post type instead of shortcode modal
- Filter posts of custom post type by meta key in (List All Section)
- saving dropdown menu data on custom post type
- List of a specific Custom Post Type in Custom Template
- Custom post type meta box empty after save
- How to add a class to meta boxes (to customize them in CSS)?
- Custom field with Types: get custom field’s value label (of type select)
- display custom portfolio tags
- adding page types in menu
- How to add comments to my custom post type but hide it from default WordPress Comments section?
- Custom post type rewrite slug translate?
- How to display singular_name of custom taxonomy?
- Taxonomy doesn’t follow slug permalink structure
- How to properly get the wp_postmeta.meta_value of a custom post type in specifics?
- Simple Data picker meta box
- Custom post template doen’t have any
- I have a problem with displaying children pages of custom post type
- ACF Post Content Not Being Searched
- Taxonomy Page Go to 404 pgae
- Infinite scroll doesnt work
- Custom Post Type only display items created by user
- Custom taxonomy page template
- Default custom column to off
- Taxonomy count per Post type
- Custom page template not being called
- Custom post type pagination, single page issue
- Custom role can’t create permalink
- Radom post image/link based on custom taxonomy
- Post AND page parameter for WP function
- Allowing null vairiable
- Custom Post & Taxonomy rewrite break regular post & page
- Order Wp Query by earliest of 3 dates meta query
- cannot export data from CPT UI (books)
- Changing upload directory and migrating old attachments
- How to set the Screen Options for Users in the Admin Panel?
- Different CPT permalink base on taxonomy
- How do loop categories post from according in WordPress? is it impossible to solve this problem?
- REQUIRED: The theme uses the register_post_type() function, which is plugin-territory
- Where paramaters of a custom function are coming from inside the loop?
- When Attempting to Filter Plugin Generated Content Using Filter post_type_link, Permalinks Are Not Modified
- How to filter custom post data with AJAX?
- Post Meta for Custom Post Types
- WP 4.4 upgrade custom post type cannot add new
- Hide custom post type slug url from search engine [closed]
- Understanding capabilities parameter in register_post_type()
- display posts, pages and custom post types from another wordpress site
- Is it possible for post and custom post type to share a category base slug?
- Replace the custom post type permalink
- Query custom post type and group by taxonomy
- How to make posts under custom post type not generate a URL / post
- Can’t add custom post type archive page to menu
- How to develop Knowledge center in WordPress Website
- strange issue with get_post_type() when using it in a shortcode in text widget
- Create a WordPress loop that shows posts from a custom post type + filters the posts by taxonomies while hiding empty taxonomies
- How to change permalink structure off default posts and also CPT’s posts
- Add Custom Taxonomy Terms as CSS Classes for CPT Posts in an Elementor Loop Item Template
- Show content from pages based on Current Date
- Need help creating a WordPress site that has a landing page and sub pages for an area (for example, “London”). Website will have 100’s of areas
- Custom URLs between different post types, using “Pods”