classes/PodsAdmin.php
public function admin_setup_duplicate_restrict( $restricted, $restrict, $action, $row, $obj ) {

		if ( in_array(
			$row['real_type'], array(
				'user',
				'media',
				'comment',
			), true
		) ) {
			$restricted = true;
		}

		return $restricted;

	}
public function admin_setup_duplicate_restrict( $restricted, $restrict, $action, $row, $obj ) {

		if ( in_array(
			$row['real_type'], array(
				'user',
				'media',
				'comment',
			), true
		) ) {
			$restricted = true;
		}

		return $restricted;

	}
public function admin_setup_duplicate_restrict ( $ restricted , $ restrict , $ action , $ row , $ obj ) { if ( in_array ( $ row [ 'real_type' ] , array ( 'user' , 'media' , 'comment' , ) , true ) ) { $ restricted = true ; } return $ restricted ; }
Restrict Duplicate action to custom types, not extended

@param bool   $restricted Whether action is restricted.
@param array  $restrict   Restriction array.
@param string $action     Current action.
@param array  $row        Item data row.
@param PodsUI $obj        PodsUI object.

@since 2.3.10

@return bool
Restrict Duplicate action to custom types not extended