darkeghost
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Job Manager] Hide job listings from WP searchAwesome thanks for the help. I implemented the solution given from this link https://www.webtipblog.com/exclude-custom-post-type-search-wordpress/ and it worked great.
Just a side note you may want to look into, I hade both options selected in my settings from the screenshot you linked and expired listings were still appearing in the wordpress search. They were not showing up in the job listing search/page though.
Okay after doing a bunch of research I have managed to find a way to do this.
function listing_published_send_email($post_id) { if( 'job_listing' != get_post_type( $post_id ) ) { return; } $post = get_post($post_id); $author = get_userdata($post->post_author); $job = get_the_job_application_method($post); // Message to be sent to users. $message = "Put the message you want to send here"; // Checks to see if the person who submitted the job listing is a user or a guest. if ($author == 0 OR $author == NULL){ // Checks to see if the email is valid. if ($job->type == 'email') { $email = $job->email; wp_mail($email, "Your job listing is online", $message); } else { // The email is not valid so return. return; } } else { wp_mail($author->user_email, "Your job listing is online", $message); } } add_action('pending_to_publish', 'listing_published_send_email'); add_action('pending_payment_to_publish', 'listing_published_send_email');Should just be able to put this code in functions.php file and it will work.
Forum: Plugins
In reply to: [WooCommerce] Product bought using subscription discountI’m sorry I didn’t know that, I have had discussions about other paid plugins with no issues on here before.
Forum: Plugins
In reply to: [WooCommerce] Product bought using subscription discountNo, that is not what I am asking at all. I have products that cost money (say movies for example) that when a user buys they have access to permanently however when a user has a certain subscription all the products (once again let’s say the products are movies) are free to use (have a discount of 100%) my issue is that once a user’s subscription ends they still have access to the products they got at a 100% discount.
And yes I am already using woocommerce memberships and subscriptions.
- This reply was modified 5 years, 4 months ago by darkeghost.
Forum: Plugins
In reply to: [WooCommerce] Woocommerce cart->add_fee() not workingI am confused why this is a complex development topic, it’s just coding.
Anyways, I managed to fix my issue by adding in this line of code:
add_filter( 'woocommerce_subscriptions_is_recurring_fee', '__return_true' );I also happen to be looking for this answer.