Insert Modal on user first login

The problem is that wp_login comes at the end of the wp_signon() function. But that’s not the end of things for logging a user in. After that, they are redirected (so that the auth cookie that is set during logon can be read). As a result, the user is wisked away to a new page … Read more

Calling hooks in functions

You’re on the right path with your add_filter, but this is the right way to implement filters. add_filter( ‘gigpress_related_post_types’, ‘my_related_post_types’ ); function my_related_post_types( $post_types ) { return array( ‘productions’ ); } The hook add_filter must call a function that returns something to pass to the apply_filters in the code you referenced. You should add in … Read more

Auto remove tags on certain date

You can use wp_schedule_event( int $timestamp, string $recurrence, string $hook, array $args = array() ) function to automatically remove the tag. This function will run automatically after the given interval. You can set the interval daily. Daily the function will run and remove the tag from the post if current date is equal to certain … Read more