Reply To: checkboxes – This value is not valid

Home Forums Quform WordPress checkboxes – This value is not valid Reply To: checkboxes – This value is not valid

#32285
amator
Participant

This is issue with Orphans plugin. Here is solution:

if ( ! class_exists( 'iworks_orphans_skip_entries' ) ) {
	class iworks_orphans_skip_entries {
		/**
		 * List of entries IDs to skip!
		 */
		private $skip_ids_list = array(
			1175,
		);

		public function __construct() {
			add_filter( 'orphan_skip_replacement', array( $this, 'skip' ) );
		}

		public function skip( $status ) {
			if ( ! is_main_query() ) {
				return $status;
			}
			$post_ID = get_the_ID();
			if ( in_array( $post_ID, $this->skip_ids_list ) ) {
				return true;
			}
			return $status;
		}
	}
}

new iworks_orphans_skip_entries;

Add it to functions.php of your child theme
Add here your pages id where you have forms to disable Orphan plugin.

private $skip_ids_list = array(
			1175,
  • This reply was modified 8 months ago by amator.
  • This reply was modified 8 months ago by Ally. Reason: Formatted code
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy