Title: yflement's Replies | WordPress.org

---

# yflement

  [  ](https://wordpress.org/support/users/yflement/)

 *   [Profile](https://wordpress.org/support/users/yflement/)
 *   [Topics Started](https://wordpress.org/support/users/yflement/topics/)
 *   [Replies Created](https://wordpress.org/support/users/yflement/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/yflement/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/yflement/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/yflement/engagements/)
 *   [Favorites](https://wordpress.org/support/users/yflement/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories] Remove tag](https://wordpress.org/support/topic/remove-tag-1/)
 *  Thread Starter [yflement](https://wordpress.org/support/users/yflement/)
 * (@yflement)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/remove-tag-1/#post-8483146)
 * I’m using version 2.1.4. In post-expirator.php:
 * An if-else chain starts at line 472. I altered the last elseif to:
 *     ```
       elseif ($expireType == 'category-remove') {
           $tag = "registration closed";
           wp_set_object_terms( $id, array($tag), 'post_tag', false );        	
       }
       ```
   
 * What this does: it makes the ‘Remove category’-action remove all tags from the
   post (wp_set_object_terms) and replaces it with a single tag named ‘registration
   closed’ (i start with posts that have tag ‘registration’).
 * In the `_postExpiratorExpireType` function i changed the last statement in `if(
   $type != 'page')` to:
 * `$rv[] = '<option value="category-remove" '. ($selected == 'category-remove' ?'
   selected="selected"' : '') . '>'.__('Remove tag','post-expirator').'</option>';`
 * Which makes it so that when you select ‘Remove tag’ from the dropdown in the 
   front-end that it will go into the modified elseif above.
 * I have uploaded the complete file at [http://pastebin.com/Cg8kWNtm](http://pastebin.com/Cg8kWNtm).
   In the end, it’s very limited and you can’t use the remove-category action anymore
   but it’s what did the job for me.
 * Hopefully it helps you in any way!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Schedule Post Changes With PublishPress Future: Unpublish, Delete, Change Status, Trash, Change Categories] Remove tag](https://wordpress.org/support/topic/remove-tag-1/)
 *  Thread Starter [yflement](https://wordpress.org/support/users/yflement/)
 * (@yflement)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/remove-tag-1/#post-8476019)
 * I used this plugin but added code to remove the tag of a post. I know basically
   no PHP so it’s probably very ugly, but I can look up the code and post if you
   want.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Smash Balloon Social Post Feed - Simple Social Feeds for WordPress] Shortcodes stop working when deactivating plugin](https://wordpress.org/support/topic/shortcodes-stop-working-when-deactivating-plugin/)
 *  Thread Starter [yflement](https://wordpress.org/support/users/yflement/)
 * (@yflement)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/shortcodes-stop-working-when-deactivating-plugin/#post-6985179)
 * Smashballoon, you are a lifesaver!
 * It was exactly as you said. I thought you could use shortcodes in widgets by 
   default.
 * Many thanks!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HTML Import 2] Internal links regex broken](https://wordpress.org/support/topic/internal-links-regex-broken/)
 *  Thread Starter [yflement](https://wordpress.org/support/users/yflement/)
 * (@yflement)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/internal-links-regex-broken/#post-6882389)
 * I’m afraid I won’t be able to help with that as I have basically no knowledge
   of PHP and I also didn’t have to import files or images.
 * However I did use this tool:
 *  [https://regex101.com/](https://regex101.com/)
 * to test the regex. Perhaps it can be of some use for you…
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[HTML Import 2] Internal links regex broken](https://wordpress.org/support/topic/internal-links-regex-broken/)
 *  Thread Starter [yflement](https://wordpress.org/support/users/yflement/)
 * (@yflement)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/internal-links-regex-broken/#post-6882383)
 * Hello mbcoulter,
 * It’s in: import-html-pages/html-importer.php
    In the function: fix_internal_links
   On line: 139
 * After I made this change, it correctly detected the internal links, so hopefully
   it works for you as well!

Viewing 5 replies - 1 through 5 (of 5 total)