Title: plusless's Replies | WordPress.org

---

# plusless

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

 *   [Profile](https://wordpress.org/support/users/plusless/)
 *   [Topics Started](https://wordpress.org/support/users/plusless/topics/)
 *   [Replies Created](https://wordpress.org/support/users/plusless/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/plusless/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/plusless/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/plusless/engagements/)
 *   [Favorites](https://wordpress.org/support/users/plusless/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: [[Rank Math SEO – AI SEO Tools to Dominate SEO Rankings] Accessing arguments in Custom Variable callback](https://wordpress.org/support/topic/accessing-arguments-in-custom-variable-callback/)
 *  Thread Starter [plusless](https://wordpress.org/support/users/plusless/)
 * (@plusless)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/accessing-arguments-in-custom-variable-callback/#post-17185020)
 * Thanks!
 * I got it working with a class, for future reference here is how I did it:
 *     ```wp-block-code
       $platform_list = array(
          array('name' => 'Apple Music', 'slug' => 'apple_music')
          array('name' => 'Soundcloud', 'slug' => 'soundcloud'),
          array('name' => 'Spotify', 'slug' => 'spotify')
       );
   
       foreach($platform_list as $platform) {
          $variable = new platform_variable($platform);
       }
   
       class platform_variable {
          protected $slug, $name;
   
          function __construct($platform) {
             $this->slug = $platform['slug'];
             $this->name = $platform['name'];
   
             rank_math_register_var_replacement($this->slug, array(
                   'name' => esc_html__($this->name, 'rank_math'),
                   'description' => esc_html__('url for '.$this->name, 'rank_math'),
                   'variable' => $this->slug,
                   'example' => $this->my_callback_function()
                ),
                [ $this, 'my_callback_function' ]
             );
          }
   
          function my_callback_function() {
             $post_id = get_the_ID();
             $metadata = get_post_meta($post_id, $this->slug, true);
   
             if (!empty($metadata)) {
                return esc_attr($metadata);
             } else {
                return null;
             }
          }
       }
       ```
   
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Change default Taxonomy input Description](https://wordpress.org/support/topic/change-default-taxonomy-input-description/)
 *  Thread Starter [plusless](https://wordpress.org/support/users/plusless/)
 * (@plusless)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/change-default-taxonomy-input-description/#post-8689208)
 * Thanks [@bcworkz](https://wordpress.org/support/users/bcworkz/) for your help,
   I got it to work:
 *     ```
       add_filter('gettext', 'changeTaxonomyLabels');
       function changeTaxonomyLabels($translated_text) {
       	global $taxonomy;
   
       	if (is_admin() && $taxonomy == 'artists') {
       		switch ($translated_text) {
       			case 'The description is not prominent by default; however, some themes may show it.':
       				$translated_text = __('A short description about the artist.');
       				break;
       		}
       	} return $translated_text;
       }
       ```
   
 * **How to function works:**
    First off we get the global _$taxonomy_ variable,
   so we can check it later. Then we make sure that the current user is an admin,
   and that the current page is one of our taxonomy (which is called _artists_).
   We replace the default text (the case) with our custom text (_‘A short description
   about the artist’_) by changing the _$translated\_text_ variable. And finally,
   return the updated variable.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Seriously Simple Podcasting] Not all episodes showing up in iTunes](https://wordpress.org/support/topic/not-all-episodes-showing-up-in-itunes/)
 *  Thread Starter [plusless](https://wordpress.org/support/users/plusless/)
 * (@plusless)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/not-all-episodes-showing-up-in-itunes/#post-8646350)
 * Hi all,
 * It seems to be working right now, all episodes are now showing in iTunes.
    A 
   few days back we changed the ‘Syndication feeds show the most recent’ setting
   inside WordPress (as discussed [here](https://wordpress.org/support/topic/only-10-podcasts-per-feed/)),
   but it didn’t seem to solve the problem in iTunes whitin a few hours. I think
   iTunes took a bit longer than expected to update, and changing the ‘Syndication
   feeds show..’ setting did solve the problem.
 * Thanks [@lootahpaytah](https://wordpress.org/support/users/lootahpaytah/) for
   your help!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Seriously Simple Podcasting] Not all episodes showing up in iTunes](https://wordpress.org/support/topic/not-all-episodes-showing-up-in-itunes/)
 *  Thread Starter [plusless](https://wordpress.org/support/users/plusless/)
 * (@plusless)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/not-all-episodes-showing-up-in-itunes/#post-8639212)
 * Thanks [@lootahpaytah](https://wordpress.org/support/users/lootahpaytah/) for
   your response,
 * The url of the feed is: [http://www.noxu-recordings.com/feed/podcast](http://www.noxu-recordings.com/feed/podcast)
   
   And the link to the website is: [http://www.noxu-recordings.com/](http://www.noxu-recordings.com/)
 *   Forum: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
   
   In reply to: [Checkbox selection for Taxonomy terms](https://wordpress.org/support/topic/checkbox-selection-for-taxonomy-terms/)
 *  Thread Starter [plusless](https://wordpress.org/support/users/plusless/)
 * (@plusless)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/checkbox-selection-for-taxonomy-terms/#post-7141952)
 * Thanks, thats an great idea!
 * I tried to write the code, but I can’t seem to figure out how to make it work.
   Does anybody have an idea what I’m doing wrong?
 * What I’ve got right now:
 *     ```
       function check_gender_tax($post_id) {
       		if (!isset( $_POST['meta_gender_nonce'] ) || !wp_verify_nonce( $_POST['meta_gender_nonce'], basename( __FILE__ ) ) ){
       			return;
       		}
   
       		if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) {
       			return;
       		}
   
       		if (!current_user_can( 'edit_post', $post_id ) ){
       			return;
       		}
   
       		if (!isset($_POST['tax_input']['gender'])) {
       			wp_delete_object_term_relationships($post_id, 'gender');
       		}
       	}
   
       	add_action('save_post', 'check_gender_tax');
       ```
   
 * (I’ve also changed the ‘name’ of the checkboxes back to `tax_input[gender][]`)

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