Title: Jay's Replies | WordPress.org

---

# Jay

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

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

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 401 total)

1 [2](https://wordpress.org/support/users/phyrax/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/phyrax/replies/page/3/?output_format=md)…
[25](https://wordpress.org/support/users/phyrax/replies/page/25/?output_format=md)
[26](https://wordpress.org/support/users/phyrax/replies/page/26/?output_format=md)
[27](https://wordpress.org/support/users/phyrax/replies/page/27/?output_format=md)
[→](https://wordpress.org/support/users/phyrax/replies/page/2/?output_format=md)

 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [How to Escape Custom Function Parameters](https://wordpress.org/support/topic/how-to-escape-custom-function-parameters/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [4 years, 10 months ago](https://wordpress.org/support/topic/how-to-escape-custom-function-parameters/#post-14616797)
 * Wrote this on my lunch break for ya, it’s been awhile since I’ve been on the 
   forums but this should help. If you need to do something with the keys, you’ll
   probably want a foreach and to clone the `$filters` into a new modified version,
   but really without seeing what that array looks like I’ll be of little help.
 *     ```
       <?php
       function get_filter_list($ids, $filters, $selected_filters) {
          //some operation
       	$ids = array_map( 'intval', $ids );
       	$selected_filters = array_map( 'intval', $selected_filters );
   
       	/* 
       	Assuming the following
       	$filters = [
       		123 => 'someValue'
       	];
       	*/
       	$filters = array_map( 'esc_html', $filters );
   
       	return wp_json_encode( compact( 'ids', 'selected_filters', 'filters' ) );
       }
   
       //function call
       get_filter_list($ids, $filters, $selected_filters);
       ```
   
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[WooMinecraft-WP] Offline Mode Not Supported](https://wordpress.org/support/topic/offline-mode-not-supported/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [7 years ago](https://wordpress.org/support/topic/offline-mode-not-supported/#post-11463471)
 * I do not currently, nor will I ever, support cracked software or games. Thanks
   for your feedback.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [organizing media center by days](https://wordpress.org/support/topic/organizing-media-center-by-days/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [7 years ago](https://wordpress.org/support/topic/organizing-media-center-by-days/#post-11431944)
 * Take a look at the upload_dir filter here – [https://core.trac.wordpress.org/browser/tags/5.1.1/src/wp-includes/functions.php#L2087](https://core.trac.wordpress.org/browser/tags/5.1.1/src/wp-includes/functions.php#L2087)
 * It’s not a definitive answer but it’s a start.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Emailing page contents (ie shopping cart) from client to shop owner](https://wordpress.org/support/topic/emailing-page-contents-ie-shopping-cart-from-client-to-shop-owner/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [7 years ago](https://wordpress.org/support/topic/emailing-page-contents-ie-shopping-cart-from-client-to-shop-owner/#post-11431939)
 * Looks like you’re using WooCommerce – look into getting cart contents, this should
   get you started: [https://stackoverflow.com/questions/28576667/get-cart-item-name-quantity-all-details-woocommerce](https://stackoverflow.com/questions/28576667/get-cart-item-name-quantity-all-details-woocommerce)
 * You can then use wp_mail() to send the email just making sure to fill in the 
   necessary fields.
 * While I don’t know if it would solve your payment gateway issues, you could also
   take a look at WPDispensary – [https://www.wpdispensary.com/](https://www.wpdispensary.com/)
 *   Forum: [Reviews](https://wordpress.org/support/forum/reviews/)
    In reply to:
   [[Agy - Age verification for WooCommerce] Weird](https://wordpress.org/support/topic/weird-7/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/weird-7/#post-10847539)
 * Hey @audiofeeline
 * Sorry about all this m8 – but Patrick has taken over the plugin at my discretion.
   The free version and my original code will always live here – [https://github.com/jaywood/content-warning-v3](https://github.com/jaywood/content-warning-v3)–
   you ( like others ) are welcome to download it and use it or even fork it for
   yourself.
 * It was my understanding that when Patrick took over it would be for development,
   not turning the plugin into a freemium model – but such is life I guess.
 * I’ll work on a new version soon – god speed!
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Internationalization and child template](https://wordpress.org/support/topic/internationalization-and-child-template-2/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/internationalization-and-child-template-2/#post-9813435)
 * Registering the text domain and then calling load_child_theme_textdomain() means
   it will load the textdomain from the ‘/languages’ folder of the child theme, 
   if you follow the docs.
 * So, in your child theme’s lang files you’ll only need to include strings which
   are used in YOUR theme. If, however, you overwrite a parent-theme file/function,
   you’ll need to include those as well, and set them to your textdomain.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Calculate difference between 2 dates](https://wordpress.org/support/topic/calculate-difference-between-2-dates/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/calculate-difference-between-2-dates/#post-9813422)
 * Pretty sure this is built in, but give this one a go:
    [http://php.net/manual/en/function.date-diff.php](http://php.net/manual/en/function.date-diff.php)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Storing input from visitors into database](https://wordpress.org/support/topic/storing-input-from-visitors-into-database/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/storing-input-from-visitors-into-database/#post-9649528)
 * A large portion of people use Gravity Forms just for this, especially since you
   can create the form yourself, it also stores entries in the db.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [What function does render content to give back it to user?](https://wordpress.org/support/topic/what-function-does-render-content-to-give-back-it-to-user/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [9 years ago](https://wordpress.org/support/topic/what-function-does-render-content-to-give-back-it-to-user/#post-9118897)
 * What you’re looking for I assume is the ‘the_content’ filter? [https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content](https://codex.wordpress.org/Plugin_API/Filter_Reference/the_content)
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [Missing rest-api.php file affecting wp-settings.php](https://wordpress.org/support/topic/missing-rest-api-php-file-affecting-wp-settings-php/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [9 years ago](https://wordpress.org/support/topic/missing-rest-api-php-file-affecting-wp-settings-php/#post-9118863)
 * The rest-api.php file has been around since version 4.4.0 or so. If you’ve updated
   a plugin which now relies on the rest API, but failed to update WordPress, that
   could be the issue.
 * If your WordPress install is up to date, you may want to consider a fresh install
   of all the files.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Agy - Age verification for WooCommerce] Specific page](https://wordpress.org/support/topic/specific-page-2/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/specific-page-2/#post-8952926)
 * Closing due to lack of response.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Agy - Age verification for WooCommerce] Background opacity not working](https://wordpress.org/support/topic/background-opacity-not-working/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/background-opacity-not-working/#post-8952924)
 * Tested on the latest version of WP, no bug exists.
 * If you want to submit your website URL for troubleshooting here – [http://plugish.com/contact-me/](http://plugish.com/contact-me/)
   I can take a look.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Agy - Age verification for WooCommerce] content warning v2 full screen](https://wordpress.org/support/topic/content-warning-v2-full-screen/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/content-warning-v2-full-screen/#post-8905428)
 * It should be possible with CSS yes. Off the top of my head I’m not sure which
   selector would be best though.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Agy - Age verification for WooCommerce] Background opacity not working](https://wordpress.org/support/topic/background-opacity-not-working/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/background-opacity-not-working/#post-8861728)
 * The BG Opacity setting is bugged. You can, however, use basic css to achieve 
   this.
 *   Forum: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
   
   In reply to: [getting a correct link to an image](https://wordpress.org/support/topic/getting-a-correct-link-to-an-image/)
 *  [Jay](https://wordpress.org/support/users/phyrax/)
 * (@phyrax)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/getting-a-correct-link-to-an-image/#post-8845898)
 * Your loop doesn’t look like a normal loop.
 * `foreach ( $posts as $post ) ...`
 * Should be:
 *     ```
       while ( have_posts() ) { 
           the_post();
       }
       ```
   
 * Without using a proper loop, I’m pretty sure `the_post_thumbnail` will not work
   unless you have set the proper globals.
 * More info on how to make a proper loop – [https://codex.wordpress.org/The_Loop](https://codex.wordpress.org/The_Loop)

Viewing 15 replies - 1 through 15 (of 401 total)

1 [2](https://wordpress.org/support/users/phyrax/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/phyrax/replies/page/3/?output_format=md)…
[25](https://wordpress.org/support/users/phyrax/replies/page/25/?output_format=md)
[26](https://wordpress.org/support/users/phyrax/replies/page/26/?output_format=md)
[27](https://wordpress.org/support/users/phyrax/replies/page/27/?output_format=md)
[→](https://wordpress.org/support/users/phyrax/replies/page/2/?output_format=md)