classes/PodsAdmin.php
public function admin_init() {

		// Fix for plugins that *don't do it right* so we don't cause issues for users
		// @codingStandardsIgnoreLine
		if ( defined( 'DOING_AJAX' ) && ! empty( $_POST ) ) {
			$pods_admin_ajax_actions = array(
				'pods_admin',
				'pods_relationship',
				'pods_upload',
				'pods_admin_components',
			);

			/**
			 * Admin AJAX Callbacks
			 *
			 * @since unknown
			 *
			 * @param array $pods_admin_ajax_actions Array of actions to handle.
			 */
			$pods_admin_ajax_actions = apply_filters( 'pods_admin_ajax_actions', $pods_admin_ajax_actions );

			if ( in_array( pods_v( 'action' ), $pods_admin_ajax_actions, true ) || in_array( pods_v( 'action', 'post' ), $pods_admin_ajax_actions, true ) ) {
				// @codingStandardsIgnoreLine
				foreach ( $_POST as $key => $value ) {
					if ( 'action' === $key || 0 === strpos( $key, '_podsfix_' ) ) {
						continue;
					}

					// @codingStandardsIgnoreLine
					unset( $_POST[ $key ] );

					// @codingStandardsIgnoreLine
					$_POST[ '_podsfix_' . $key ] = $value;
				}
			}
		}//end if
	}
public function admin_init() {

		// Fix for plugins that *don't do it right* so we don't cause issues for users
		// @codingStandardsIgnoreLine
		if ( defined( 'DOING_AJAX' ) && ! empty( $_POST ) ) {
			$pods_admin_ajax_actions = array(
				'pods_admin',
				'pods_relationship',
				'pods_upload',
				'pods_admin_components',
			);

			/**
			 * Admin AJAX Callbacks
			 *
			 * @since unknown
			 *
			 * @param array $pods_admin_ajax_actions Array of actions to handle.
			 */
			$pods_admin_ajax_actions = apply_filters( 'pods_admin_ajax_actions', $pods_admin_ajax_actions );

			if ( in_array( pods_v( 'action' ), $pods_admin_ajax_actions, true ) || in_array( pods_v( 'action', 'post' ), $pods_admin_ajax_actions, true ) ) {
				// @codingStandardsIgnoreLine
				foreach ( $_POST as $key => $value ) {
					if ( 'action' === $key || 0 === strpos( $key, '_podsfix_' ) ) {
						continue;
					}

					// @codingStandardsIgnoreLine
					unset( $_POST[ $key ] );

					// @codingStandardsIgnoreLine
					$_POST[ '_podsfix_' . $key ] = $value;
				}
			}
		}//end if
	}
public function admin_init ( ) { // Fix for plugins that *don't do it right* so we don't cause issues for users // @codingStandardsIgnoreLine if ( defined ( 'DOING_AJAX' ) && ! empty ( $ _POST ) ) { $ pods_admin_ajax_actions = array ( 'pods_admin' , 'pods_relationship' , 'pods_upload' , 'pods_admin_components' , ) ; /**
			 * Admin AJAX Callbacks
			 *
			 * @since unknown
			 *
			 * @param array $pods_admin_ajax_actions Array of actions to handle.
			 */ $ pods_admin_ajax_actions = apply_filters ( 'pods_admin_ajax_actions' , $ pods_admin_ajax_actions ) ; if ( in_array ( pods_v ( 'action' ) , $ pods_admin_ajax_actions , true ) || in_array ( pods_v ( 'action' , 'post' ) , $ pods_admin_ajax_actions , true ) ) { // @codingStandardsIgnoreLine foreach ( $ _POST as $ key => $ value ) { if ( 'action' === $ key || 0 === strpos ( $ key , '_podsfix_' ) ) { continue ; } // @codingStandardsIgnoreLine unset ( $ _POST [ $ key ] ) ; // @codingStandardsIgnoreLine $ _POST [ '_podsfix_' . $ key ] = $ value ; } } } //end if }
Init the admin area

@since 2.0.0
Init the admin area